Tag Archives: how to print javascript array like print_r()

How to print Javascript array like PHP print_r()

In PHP arrays can be displayed using 1 2 3 4 5 6 <br /> $array=(‘Apple’,’Orange’);<br /> print_r($array);</p> <p>//or</p> <p>var_dump($array);</p> <p> But in Javascript and Jquery doesn’t provide expressions to make the Array as human readable. So we Need to Create a function to read an array and make it human readable. You can use… Read More »