May 2017

PHP 优化print_r 的变量输出

<?php 

function dump($vars, $label = '', $return = false) {

if (ini_get('html_errors')) {

$content = "<pre>\n";

if ($label != '') {