- Output for 5.5.0 - 5.5.36, 5.6.0 - 5.6.22, 7.0.0 - 7.0.7
- Parse error: syntax error, unexpected 'Name' (T_STRING), expecting ']' in /in/2W6Pu on line 5
Process exited with code 255.
<?php
$str='{ "First Name": {"nickname" : "Abc"} }';
$data=json_decode($str,TRUE);
echo $data[First Name][nickname];