$arr = NSZone::find_all(array('per_page'=>20, 'page'=>1));
return result is
[0] => NSZone Object
(
[xml_skip_attribs:protected] => Array
(
[0] => id
)
[vals:protected] => Array
(
[total_count] => 3
)
)
he is accessing
arr[0]['vals:protected']['total_count'] in this way arr[0]->total_count()
That's mean total_count() is a function whereas according to array structure its look like array index. Please Explain me this code, how it work? What is [vals:protected] and can it be public, private etc as well, Any more explanation you know please?