Perhaps “debugging” is a bit too strong. However when you’re dumping an array in PHP, you’d probably prefer the print_r or var_dump.
echo '<pre>'; print_r($array); echo '</pre>';
But did you know that in Zend Framework there’s a built in Zend_Debug?
Zend_Debug::dump($array);
Does pretty much the same thing!
Related posts:









