web2000 Posted January 22, 2013 Share Posted January 22, 2013 (edited) 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 ) ) ) ) ) ) ) Edited January 22, 2013 by web2000 Quote 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 (edited) echo $array['PaymentResult']['Cdc']['CdcEntry']['Items']['CdcEntryItem'][1]['Value']; Edited January 22, 2013 by Jessica Quote 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! Quote 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
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.