SyntaxFix
Write A Post
Hire A Developer
Questions
When you json decode , force it to return an array instead of object.
$data = json_decode($json, TRUE); -> // TRUE
This will return an array and you can access the values by giving the keys.