I\'m looking to be able to produce a nicely formatted table with rows and columns from the contents of a print_r array statement?
Any ideas?
Try this out, could be improved but it works.
function myprint_r($my_array) { if (is_array($my_array)) { echo ""; echo 'ARRAY'; foreach ($my_array as $k => $v) { echo ''; echo '' . $k . ""; myprint_r($v); echo ""; } echo ""; return; } echo $my_array; }