How to use echo with PHP's array_reverse() Function : <p>I'm not a big fan of using print_r and I prefer to use echo all the time when I can so how can I use echo with PHPs array_reverse() function </p>

<p>This how the docs look like most of the time online they use print_r all the time for example</p>

<pre><code>&lt;?php
$a=array("a"=&gt;"Volvo","b"=&gt;"BMW","c"=&gt;"Toyota");
print_r(array_reverse($a));
?&gt;
</code></pre>

<p>I tried to use echo with this example but it does not work with echo.</p>

<pre><code>&lt;?php
$a=array("a"=&gt;"Volvo","b"=&gt;"BMW","c"=&gt;"Toyota");
echo array_reverse($a);
?&gt;
</code></pre>

<p>So how can I get it to work with echo?</p>
