I am trying to track shipments from the Aramex API. The following result is the response I got from the request sent to track shipment number 59398114932:
stdClass Object
(
    [Transaction] => stdClass Object
        (
            [Reference1] => 
            [Reference2] => 
            [Reference3] => 
            [Reference4] => 
            [Reference5] => 
        )
    [Notifications] => stdClass Object
        (
        )
    [HasErrors] => 
    [TrackingResults] => stdClass Object
        (
            [KeyValueOfstringArrayOfTrackingResultmFAkxlpY] => stdClass Object
                (
                    [Key] => 59398114932
                    [Value] => stdClass Object
                        (
                            [TrackingResult] => stdClass Object
                                (
                                    [WaybillNumber] => 59398114932
                                    [UpdateCode] => SH005
                                    [UpdateDescription] => Delivered
                                    [UpdateDateTime] => 2016-09-26T14:45:00
                                    [UpdateLocation] => new york
                                    [Comments] => joe
                                    [ProblemCode] => 
                                )
                        )
                )
        )
)
But what I actually need is only the [UpdateDescription] from the above response in order to know when the shipment is delivered. How can I echo it?
Here is the request I sent:
$auth_call = $soapClient->TrackShipments($params);
The shipment number is sent by the $params array.
 
     
     
    