a::show($array, $echo = true)
Shows an entire array or object in a human readable way This is perfect for debugging
-
$array (array)
The source array -
$echo (boolean)
By default the result will be echoed instantly. You can switch that off here. -
return (mixed)
If echo is false, this will return the generated array output.
Example
<?php
$array = array(
'cat' => 'miao',
'dog' => 'wuff',
'bird' => 'tweet'
);
a::show($array);
Result:
Array
(
[cat] => miao
[dog] => wuff
[bird] => tweet
)