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

php - get table cell data from and place a copy in another table -

javascript - Mootools wait with Fx.Morph start -

php - Navigate throught databse rows -