Home / PHP Tips Generated By ChatGPT / Converting JSON to an Array in PHP Decode a JSON string into a PHP array. Source Code $json = '{"a":1,"b":2,"c":3}'; $arr = json_decode($json, true); print_r($arr);