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
First print your array:
print_r($yourarrayname);
Then print:
print_r($yourarrayname['AvailRequest']);
print_r($yourarrayname['AvailRequest']['Trip']);
Then you will understand what I mean.