How to access values inside multidimensional array

2019-09-27 01:18发布

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

标签: php
2条回答
倾城 Initia
2楼-- · 2019-09-27 02:11

You have access using array

$arrayname['TrackReply']['TrackDetails']['Notification']['Message']
查看更多
Luminary・发光体
3楼-- · 2019-09-27 02:19
echo $array['TrackReply']['TrackDetails']['Notification']['Message'];
查看更多
登录 后发表回答