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
This how the docs look like most of the time online they use print_r all the time for example
<?php
$a=array("a"=>"Volvo","b"=>"BMW","c"=>"Toyota");
print_r(array_reverse($a));
?>
I tried to use echo with this example but it does not work with echo.
<?php
$a=array("a"=>"Volvo","b"=>"BMW","c"=>"Toyota");
echo array_reverse($a);
?>
So how can I get it to work with echo?