As I know, in associative arrays, if the keys is not set, it will be set automatically. But it seem doesn\'t make sense in this case:
$a = array
@Uchiha is right, just as an include to that answer, if you want to avoid this problem, keep members of an array (which are not having keys specified) at the last
$a = array( '1' => 'One', '3', '2' => 'Two');
will dump
array (size=2)
1 => string 'One' (length=3)
2 => string 'Two' (length=3)
$a = array( '1' => 'One', '2' => 'Two', '3');
will dump
array (size=3)
1 => string 'One' (length=3)
2 => string 'Two' (length=3)
3 => string '3' (length=1)