How to access an array of arrays in PHP

后端 未结 3 546
不知归路
不知归路 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 09:07

    First print your array:

    print_r($yourarrayname);
    

    Then print:

    print_r($yourarrayname['AvailRequest']);
    

    Then print:

    print_r($yourarrayname['AvailRequest']['Trip']);
    

    Then you will understand what I mean.

提交回复
热议问题