Dump () uses arrays in array format for debugging.
Function dump ($ vars, $ label =, $ return = false ){
If (ini_get (html_errors )){
$ Content = "<pre> ";
If ($ label! = ){
$ Content. = "<strong >{$ label }:</strong> ";
}
$ Content. = htmlspecialchars (print_r ($ vars, true ));
$ Content. = "</pre> ";
} Else {
$ Content = $ label. ":". print_r ($ vars, true );
}
If ($ return) {return $ content ;}
Echo $ content;
Return null;
} Array_remove_empty () removes the empty element in the array. function array_remove_empty (& $ arr, $ trim = true ){
Foreach ($ arr as $ key => $ value ){
If (is_array ($ value )){
Array_remove_empty ($ arr [$ key]);
} Else {
$ Value = trim ($ value );
If ($ value = ){
Unset ($ arr [$ key]);
} Elseif ($ trim ){
$ Arr [$ key] = $ value;
}
}
}
} The default function of array_chunk () php is to divide the function evenly.