9951 explained code solutions for 126 technologies


phpDecode JSON to array


$arr = json_decode($json, true);ctrl + c
$arr

resulting array with decoded JSON

json_decode

decodes JSON string

$json

string in JSON format

true

will ask php to decode JSON into array instead of object