- Output for 5.4.2 - 5.4.45, 5.5.24 - 5.5.30, 5.6.8 - 5.6.14
- Parse error: syntax error, unexpected '=', expecting ')' in /in/A82Qj on line 2
Process exited with code 255.
<?php
$a = array(1="a",2="b",3=>"c",4=>"d");
foreach($a as $key=>$value)
{
$a[$key]=$value+2;
}
print_r($a);