Debugging view of 2D array

If you are in a position to have a better view of 2 dimensional array then try this



$fruits["apple"] = array("Canada","US","Extra");


print_r($fruits) won't show a better view but the following way would show a clear view of arrays and values



echo "
";
print_r($fruits);
echo "
";



Enjoy.
cheers.

0 comments



Some Links (off programming)