Good question,
There is two good command in PHP which are
<?php print_r($array2); ?>
All this does it prints out what is in the array with formatting, but if you want a nicer cleaner way to display what really is being held in the array try adding the <pre> tags to get the result just like this
<pre><?php print_r($array2); ?></pre>
Happy Debugging!
Don’t forget: print_r() is just a function in PHP
I always had a passion for the field of STEM (Science, Technology, Engineering, and Math) and I knew I wanted to do something to make a difference in the world. I just didn’t know where to start. I was an immigrant in a new country, grew up in a tough environment, and wasn’t sure how… Read More