Created
February 8, 2017 01:18
-
-
Save txj-xyz/b22ded6bed761b0baf78f606c5044ce2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$json = '{ | |
"Message360": { | |
"ResponseStatus": 0, | |
"Errors": { | |
"Error": [ | |
{ | |
"Code": "ER-M360-EML-104", | |
"Message": "Please enter a correctly formatted email address.", | |
"MoreInfo": [] | |
} | |
] | |
} | |
} | |
}'; | |
$array = json_decode($json, true); | |
echo $array['Message360']['Errors']['Error'][0]["Code"]; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment