|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2002-02-03 12:01 UTC] manuzhai at xavamedia dot nl
In the manual entry for array_shift(), this is stated: "This would result in $fruit having 3 elements left:". But it seems that this should be "This would result in $stack having 3 elements left:". BTW: I'm not sure if I should report this kind of problems to this bug database, but I couldn't think of another way. Manuzhai PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 14:00:01 2025 UTC |
Reopened this bug. Manual says: $stack = array ("orange", "banana", "apple", "raspberry"); $fruit = array_shift ($stack); Will result in $stack beeing: Array ( [0] => banana [1] => apple [2] => raspberry ) and orange will be assigned to $fruit. In fact Array is: ( [1] => banana [2] => apple [3] => raspberry ) Don't know if this behaviour is expected and if it's a documentation bug or if this feature is not expected and it's a real bug.