我試圖從多維數組中獲取此數據[label] => For Rent
。這裏是我的陣列使用PHP代碼獲取來自多維數組的數據
Array ([listing_id] => 0
[fields] =>
Array ([1] => Property House 7 [2] => 30 [4] => sdfasd
[11] => Bungalow [10] => Philippines [12] => 1800100
[13] => 1 [14] => 1 [15] => Yes [16] => Yes [17] => Yes
[18] => Yes [26] => Yes [25] => Yes [24] => Yes
[23] => Yes [22] => Yes [21] => Yes [20] => Yes [19] => Yes)
[fees] => Array (
[30] => stdClass Object ([id] => 2 [label] => For Rent [amount] => 0.00
[days] => 7 [images] => 0
[categories] =>
Array ([all] => 0
[categories] => Array ([0] => 30)) [extra_data] =>))
[images] => Array () [thumbnail_id] => 0)
我將如何迴應有使用PHP代碼的For Rent
值label
您的數組中包含'stdClass的Object'。它怎麼可能。 –
@YogeshSuthar,你可以把你想要的任何東西放在數組中,包括對象實例。 – Brad