Quote:
Originally Posted by Link14716
It'd only print array() if the array is empty.
|
Just as an FYI, heres the function I always use when I mack for dumping vars. pretty handy if you ask me
PHP Code:
function debug_array($array,$echo_on_empty=1;$title='Values'){
if (is_array($array)){
echo("<br /> Array: $title<hr><pre>");
print_r(array_values($array));
echo("</pre><br />End Array $title<hr>");
}elseif($echo_on_empty){
echo("<br />Array $title is empty!<br />");
}
}