Look at your variable.
The variable name is $ret.
It has 4 named array members:
"customerPaymentProfileIdList"
"customerShippingAddressIdList"
"validationDirectResponseList"
"messages"
From that, you have 2 named array members:
"resultCode"
"message"
Again, it is the latter of the two you need.
That has one array member with an index of 0.
And this has 2 named array members:
"code"
"text"
From which you want the first.
So the entire access would be:
$ret["messages"]["message"][0]["code"]
--
==================
Remove the "x" from my email address
Jerry Stuckle
jstu...@attglobal.net
==================