What PHP function will print the name of an array with its contents?
<p>When I use Smart::Comments in Perl, I can see the name of the hash I am dumping (i.e. %person, below). . .</p>

<pre><code>[pdurbin@macbook ~]$ cat /tmp/person.pl
#!/usr/bin/perl
use strict;
use warnings;
use Smart::Comments;
my %person = (
    'hair' =&gt; 'golden',
    'eyes' =&gt; 'blue',
);
### %person
[pdurbin@macbook ~]$ perl /tmp/person.pl

### %person: {
###            eyes =&gt; 'blue',
###            hair =&gt; 'golden'
###          }
[pdurbin@macbook ~]$
</code></pre>

<p>. . . but in PHP I only see "Array", no mention of $person. . .</p>

<pre><code>[pdurbin@macbook ~]$ cat /tmp/person.php 
&lt;?php
$person = array(
    'hair' =&gt; 'golden',
    'eyes' =&gt; 'blue',
);
print_r($person);
[pdurbin@macbook ~]$ php /tmp/person.php
Array
(
    [hair] =&gt; golden
    [eyes] =&gt; blue
)
[pdurbin@macbook ~]$
</code></pre>

<p>I've tried <code>print_r()</code>, <code>var_export()</code>, and <code>var_dump()</code> but is there some other PHP function that will print the name of an array with its contents?</p>
