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

How to logout from a login page in asp.net -

Stack level too deep error after upgrade to rails 3.2 and ruby 1.9.3 -