即時嘗試獲取此多維數組中的數據。PHP多維數組分解
Array ([return] => Array (
[0] => stdClass Object (
[array] => Array (
[0] => ADMIN
[1] => http://www.adminpage.co.za/)) ...
但是當我嘗試
$result = $array->return;
print_r($result);
我得到
Notice: Trying to get property of non-object in ... on line 10
如果我試圖把它作爲一個數組:
$result = $array[0];
print_r($result);
我得到
Undefined offset: 0 in ... on line 10