Ejemplo n.º 1
0
 static function decho($txt, $append = "\n")
 {
     // self::debug($txt);
     if (ini::get('silent')) {
         return;
     }
     // draw
     if (self::isCommandline()) {
         $out = str::mixed2str($txt) . $append;
     } else {
         $out = '<pre>' . str::text2html(str::mixed2str($txt)) . '</pre>';
     }
     // just return
     if ($append === false) {
         return $out;
     }
     echo $out;
 }