Skip to content

Instantly share code, notes, and snippets.

wczmatthew wczmatthew

Block or report user

Report or block wczmatthew

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
@wczmatthew
wczmatthew / function.php
Created Jan 23, 2019
输出数组信息
View function.php
function dump($var, $echo=true, $label=null, $strict=true) {
$label = ($label === null) ? '' : rtrim($label) . ' ';
if (!$strict) {
if (ini_get('html_errors')) {
$output = print_r($var, true);
$output = "<pre>" . $label . htmlspecialchars($output, ENT_QUOTES) . "</pre>";
} else {
$output = $label . print_r($var, true);
}
} else {
You can’t perform that action at this time.