3 if(!function_exists("debug")) :
4 function debug($content){
5 $content = is_bool($content) ? "bool(".($content ? "true" : "false").")" : $content;
6 echo PHP_SAPI == "cli" ?
7 "\n".print_r($content, true)."\n"
8 : "<pre class=\"debug\">".htmlentities(print_r($content, true), ENT_QUOTES, "UTF-8")."</pre>";