Method: a::show
Shows an entire array or object in a human readable way
This is perfect for debugging
Info
Syntax
a::show($array, $echo=true)
Parameters
- $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
$array = array(
'cat' => 'miao',
'dog' => 'wuff',
'bird' => 'tweet'
);
a::show($array);
// output:
// Array
// (
// [cat] => miao
// [dog] => wuff
// [bird] => tweet
// )