|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2002-01-01 13:23 UTC] philippe at beau dot nom dot fr
[2002-06-17 09:41 UTC] hholzgra@php.net
[2002-06-17 19:49 UTC] hholzgra@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Nov 07 01:00:01 2025 UTC |
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