get data from multi-dimensional array using PHP code

前端 未结 3 1437
无人及你
无人及你 2021-01-28 11:13

I\'m trying to get this data [label] => For Rent from a multi-dimensional array. Here is my array

Array ( [listing_id] => 0 
        [fields]          


        
3条回答
  •  情歌与酒
    2021-01-28 11:33

    echo $yourArray['fees'][30]->label
    

    It's not just an array... it's an array with an object in it. Use the -> to access object properties.

提交回复
热议问题