public static function htmlHeaders() { if (!headers_sent()) { header("Content-Type", "text/html"); // Print out a minimal page header print "<!DOCTYPE html><html><head><meta charset=\"" . static::getCharset() . "\"></head><body>"; } }
function kd() { if (php_sapi_name() !== 'cli') { Krumo::htmlHeaders(); } $_ = func_get_args(); call_user_func_array(array('krumo', 'dump'), $_); exit; }