php - Get Data ArrayObject inside array -


monthly_payment: "9.7", maintainance_fee: "20000", areapoints: [ { station: "大塚", bus: null, walking_distance: null }, { station: null, bus: null, walking_distance: null }, { station: null, bus: null, walking_distance: null } ] 

getting monthly payment , maintenance fee easy, use $room->monthly_payment.

but there arrayobject inside of array getting error when use $room->areapoints[0]->bus

this error:

undefined property: arrayobject::$bus 

what doing wrong here

change $room->areapoints[0]->bus $room->areapoints[0]['bus']


Comments

Popular posts from this blog

curl - PHP fsockopen help required -

HTTP/1.0 407 Proxy Authentication Required PHP -

c# - Resource not found error -