<?php
$mkis3=array(arrya('name'=>'Olga','variant'=>25), arrya('name'=>'Vasya','variant'=>12));
for ($i=0, $size=sizeof($mkis3);
$i<size;++$i)
{
$people[$i]['variant']=rand(1,30);
echo $people[$i]['variant']."\n";
}
?>
- Output for 7.0.0
- Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW), expecting ',' or ')' in /in/elKUX on line 2
Process exited with code 255. - Output for 5.5.24 - 5.5.30, 5.6.8 - 5.6.16
- Parse error: syntax error, unexpected '=>' (T_DOUBLE_ARROW) in /in/elKUX on line 2
Process exited with code 255.
preferences:
170.9 ms | 1395 KiB | 24 Q