im trying to get to the data in this multidimetional array.
Array ( [return] => Array (
[0] => stdClass Object (
[array] => Array (
[0] => ADMIN
[1] => http://www.adminpage.co.za/ ) ) ...
but when i try
$result = $array->return;
print_r($result);
i get
Notice: Trying to get property of non-object in ... on line 10
if i try and call it as an array:
$result = $array[0];
print_r($result);
I get
Undefined offset: 0 in ... on line 10
->is an operator for objects, not arrays. Use[]on arrays. For example:$array['return']will give you the array whose 0th element isstdClass$array['return'][0]will give you the object$array['return'][0]->arraywill give you the array whose 0th element is “ADMIN”