Just found out that negative number is not allowed as the key in the array. e.g.
$array = array ( 50 =>"fifty", -25=>"minus" );
doing either
echo "$array[50]\n";
or
echo "$array["50"]\n";
and you will get expected "fifty" output.
But parse error when
echo "$array ["-25"]\n";
or
echo "$array[-25]\n";
I have an array describing error codes that has some negative numbers pointing to their corresponding message. I have to change the negative number to positive in order to print the message.