Retrieval Info


#1

Hi guys,

I know that the result set is returned in an array.

Say



$params = array("ident" => "EJM221");
$result = $client->call( "InFlightInfo", $params);


Returns

Array ( [InFlightInfoResult] => Array ( [faFlightID] => EJM221-1325696497-13-0 [ident] => EJM221 [prefix] => [type] => GLF5 [suffix] => Q [origin] => KROG [destination] => KBUR [timeout] => timed_out [timestamp] => 1325722386 [departureTime] => 1325712480 [firstPositionTime] => 1325704094 [arrivalTime] => 1325722742 [longitude] => 0 [latitude] => 0 [lowLongitude] => -118.616668701 [lowLatitude] => 34.2000007629 [highLongitude] => -93.9672241211 [highLatitude] => 36.4308319092 [groundspeed] => 0 [altitude] => 0 [heading] => [altitudeStatus] => [updateType] => [altitudeChange] => [waypoints] => 36.36666666666667 -94.1 …118.35 ) )

I removed some way points.
But I can get my way around to load the array details in to a variable.
Say I just need the faFlightID value

I have tried many combinations such as



$result"faFlightID"][0]
$result[0]"faFlightID"]
$result[0]
$result[0][0]


Perhaps I was looking at the wrong place?
Any help is greatly appreciated.

Cheers


#2

Got it solved.
Forgot to check the number of dimensions it had.

$result’InFlightInfoResult’]‘faFlightID’] works. yippi