web2000 Posted January 22, 2013 Share Posted January 22, 2013 Hello Friends, I am trying to read some of the parameters out of the below Array, but i am getting a little out of my depth and could really do with some help. I am simply trying to display the part "The Tracking Member Code sent is invalid. It must be unique at least during 24 hours" in an echo statement. Any help is appreciated... Array ( [PaymentResult] => Array ( [Result] => 1000 [Message] => Invalid arguments. One or more arguments have invalid values. Please review the parameters sent [TrackingMemberCode] => 79932 [TransactionId] => 0 [TransactionGuid] => 00000000-0000-0000-0000-000000000000 [TransactionDateTime] => 2013-01-22T20:03:44.2532028Z [Cdc] => Array ( [CdcEntry] => Array ( [Name] => ErrorInformation [items] => Array ( [CdcEntryItem] => Array ( [0] => Array ( [Key] => ErrorCode [Value] => 1000001 ) [1] => Array ( [Key] => ErrorMessage [Value] => The Tracking Member Code sent is invalid. It must be unique at least during 24 hours ) ) ) ) ) ) ) Link to comment https://forums.phpfreaks.com/topic/273501-php-array-really-need-help-reading-array/ Share on other sites More sharing options...
Jessica Posted January 22, 2013 Share Posted January 22, 2013 echo $array['PaymentResult']['Cdc']['CdcEntry']['Items']['CdcEntryItem'][1]['Value']; Link to comment https://forums.phpfreaks.com/topic/273501-php-array-really-need-help-reading-array/#findComment-1407559 Share on other sites More sharing options...
web2000 Posted January 22, 2013 Author Share Posted January 22, 2013 Thanks so much, worked first time! Link to comment https://forums.phpfreaks.com/topic/273501-php-array-really-need-help-reading-array/#findComment-1407563 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.