Skip to content

Instantly share code, notes, and snippets.

@txj-xyz
Created February 8, 2017 01:18
Show Gist options
  • Save txj-xyz/b22ded6bed761b0baf78f606c5044ce2 to your computer and use it in GitHub Desktop.
Save txj-xyz/b22ded6bed761b0baf78f606c5044ce2 to your computer and use it in GitHub Desktop.
<?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