How to access an array of arrays in PHP

后端 未结 3 551
不知归路
不知归路 2021-01-29 08:21

I am working on Flight api. I am sending the request(From location,To location,From date..etc) and i am getting the response in the array format as below.

Array
         


        
3条回答
  •  一向
    一向 (楼主)
    2021-01-29 08:51

    You will need to loop inside your array, level by level, and peint all relevant data you need. You can use foreach function to achieve this, please check documentation.

提交回复
热议问题