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

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
// )