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