 <p>Just use <a href="http://php.net/manual/en/function.print-r.php">print_r</a> :</p> <pre><code>echo '&lt;pre&gt;'; print_r ($myArray); echo '&lt;/pre&gt;'; </code></pre> <p>It will display information about your variable in a way that's readable by humans. can be used with arrays and objects.</p>