<?php
- function debug($content)
- { echo "<pre class=\"debug\">\n".htmlentities(print_r($content, true))."\n</pre>\n";
+ function debug($content){
+ echo PHP_SAPI == "cli" ?
+ "\n".print_r($content, true)."\n"
+ : "<pre class=\"debug\">".htmlentities(print_r($content, true), ENT_QUOTES, "UTF-8")."</pre>";
}
?>
\ No newline at end of file