- Output for 5.4.0 - 5.4.21
- Fatal error: Cannot use [] for reading in /in/MASVN on line 6
Process exited with code 255. - Output for 5.3.0 - 5.3.27
- Parse error: syntax error, unexpected '[' in /in/MASVN on line 3
Process exited with code 255.
<?php
function getList(){
return $aarr = ['Developer'=>'SAchin', 'Designer'=>'Hemant','SeniorDeveloper'=>'RAnjit'];
}
$item= getList()[];
echo $item;