/ Published in: PHP
a more useful way of printing php arrays in a nice readable format and able to decode serialized and json_encoded strings.
Expand |
Embed | Plain Text
function debug_r($array=null,$dump=false,$string_type='serialize') { "; { { if($dump) { }else{ } }else{ "; } { switch($string_type) { default: case 'serialize': break; case 'json': $array = json_decode($array); break; } { if($dump) { }else{ } }else{ "; } }else{ "; } "; }//end debug_r
You need to login to post a comment.
