- Output for 5.6.0 - 5.6.25, 7.0.0 - 7.0.10
- Parse error: syntax error, unexpected '';' (T_ENCAPSED_AND_WHITESPACE) in /in/C7OVT on line 2
Process exited with code 255.
<?php
$json = '{"1":1,"5":1}'';
$array_val=json_decode($json, true);
echo $array_val[1];