-3

I have an array like this

     Array
(
    [TrackReply] => Array
        (


            [MoreData] => false
            [TrackDetails] => Array
                (
                    [Notification] => Array
                        (
                            [Severity] => SUCCESS
                            [Source] => trck
                            [Code] => 0
                            [Message] => Request was successfully processed.
                            [LocalizedMessage] => Request was successfully processed.
                        )

                    [TrackingNumber] => 123456789012
                    [TrackingNumberUniqueIdentifier] => 2457082000~123456789012~FX
                    [CarrierCode] => FDXE
                    [ServiceInfo] => FedEx International First
                    [ServiceType] => FIRST_OVERNIGHT
                    [PackageSequenceNumber] => 0
                    [PackageCount] => 0
                    [ShipTimestamp] => 2015-02-28T13:22:00+00:00
                    [DestinationAddress] => Array
                        (
                            [StateOrProvinceCode] => TN
                            [CountryCode] => US
                            [Residential] => false
                        )

                )

        )

)

Getting this array from $response and from this array how can i get "Notification->Message" value, please help me Thanks in advance

codex
  • 446
  • 1
  • 7
  • 17
  • possible duplicate of [PHP - Accessing Multidimensional Array Values](http://stackoverflow.com/questions/17139453/php-accessing-multidimensional-array-values) – Rizier123 Mar 02 '15 at 08:47
  • There are many already asked similar Qs on Stack overflow [http://www.google.co.uk/search?q=How+to+access+values+inside+multidimensional](http://www.google.co.uk/search?q=How+to+access+values+inside+multidimensional+array+php+-+Stack+Overflow) – Amit Verma Mar 02 '15 at 08:54

2 Answers2

0
echo $array['TrackReply']['TrackDetails']['Notification']['Message'];
Mihir Bhatt
  • 3,019
  • 2
  • 37
  • 41
0

You have access using array

$arrayname['TrackReply']['TrackDetails']['Notification']['Message']
Mangesh Sathe
  • 1,987
  • 4
  • 21
  • 40