From: [EMAIL PROTECTED] Operating system: Linux 2.4.9 PHP version: 4.1.1 PHP Bug Type: Arrays related Bug description: Array_shift always the problem ...
This script : <? print "before : "; for ($i=1;$i<=6;$i++) { $toto[$i] = $i; } print_r($toto); print "<br>\n"; array_shift($toto); print "next : "; print_r($toto); print "<br>\n"; ?> give this : before : Array ( [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 ) next : Array ( [0] => 2 [1] => 3 [2] => 4 [3] => 5 [4] => 6 ) normally i should have : before : Array ( [1] => 1 [2] => 2 [3] => 3 [4] => 4 [5] => 5 [6] => 6 ) next : Array ( [1] => 2 [1] => 3 [2] => 4 [3] => 5 [4] => 6 ) Regards, Philippe BEAU Email / Philippe--at--beau.nom.Fr -- Edit bug report at: http://bugs.php.net/?id=14791&edit=1 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]