Why print_r() still exists?
<pre><code>print_r(array('name'=&gt; 'bob', 'age' =&gt; 20, 'sex' =&gt; 'man'));
</code></pre>

<p>Then : </p>

<pre><code>Array {
    [name] =&gt; bob,
    [age] =&gt; 20,
    [sex] =&gt; man }

var_dump(array('name' =&gt; 'bob', 'age' =&gt; 20));
</code></pre>

<p>will display:</p>

<pre><code>array(2) {
    ['name'] =&gt; string(3) 'bob'
    ['age'] =&gt; int(20) }
</code></pre>

<p><code>var_dump</code> is perfect to debug  and  much better than <code>print_r</code>. But why <code>print_r</code> still exists? or <code>print_r</code> has some advantage i don't know</p>
