how to convert a json string to associative array in php code example Example: php json string to associative array $assocArray = json_decode($data, true);