I am having trouble parsing this data set that I have posted at pastebin here http://pastebin.com/TmZGw92j
I can step into it as far as routings but then can not go any further for some reason. Here are my vars that I have set up:
$airTicketListResponse = $result->body->airTicketListResponse; $routings = $airTicketListResponse->routings; $trips = $routings->trips; $segments = $trips->segments; I can print_r($routings) but when I try to print_r($segments) I get nothing returned. I would like to pull items from routings and segments.
here is my current foreach loop that craps out at trips.
foreach($routings as $item){ echo '<span style="font-weight:bold;">Airline - '.$item->mainAirlineName.' Price - '.$item->adultBasePrice.'</span><br />'.$item->trips->segments->departureAirportCode.' '.$item->trips->segments->departureTime.'<br /><br />'; }
raw_body:Unirest\HttpResponse:privateseems invalid, you're missing two}at the end.var_dumpinstead ofprint_rMake sure that error level is set to maximum, i.e.error_reporting(2047);so you will see any notices that could help.