fonctions CRUD par defaut
[mtweb] / mw / app / init / 0100_functions.php
1 <?php
2
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>";
8   }
9
10 ?>