function dump($vars, $label = '', $return = false) {
if (ini_get('html_errors')) {
$content = "<pre>\n";
if ($label != '') {
$content. = "<strong>{$label} :</strong>\n";
}
$content. = htmlspecialchars(print_r($vars, true));
$content. = "\n</pre>\n";
} else {
$content = $label.
" :\n".print_r($vars, true);
} if ($return) {
return $content;
}
echo $content;
return null;
}
“相关推荐”对你有帮助么?
-
非常没帮助
-
没帮助
-
一般
-
有帮助
-
非常有帮助
提交