Let\'s say I have this JSON:
{ \"achievement\": [ { \"title\": \"Ready for Work\", \"description\": \"Sign up and get validated\", \"
When you set the second parameter of json_decode to true, it will return an array.
json_decode
true
$json_a=json_decode($string,true);
returns an array.
$getit = $json_a['achievement'][1]['title'];