if someone needs to view arrays so cool ;) use this method.. this will print to your browser console
function console($obj)
{
$js = json_encode($obj);
print_r('');
}
you can use like this..
console($myObject);
Output will be like this.. so cool eh !!