note 55094 added to function.array-push

From: Date: Mon, 25 Jul 2005 16:33:43 +0000
Subject: note 55094 added to function.array-push
Groups: php.notes 
Request: Send a blank email to php-notes+get-92420@lists.php.net to get a copy of this message
The text is incorrect in reference to the push function atcing like a stack when storing something into the array. Strictly speaking a stack would place the value/object at the front of the array, not the back. This shouldn't really be 'array_push', but 'array_enqueue'. I guess this issue is dealt with in the way the 'array_pop' function works, but it is still somewhat misleading. Joe ---- Manual Page -- http://www.php.net/manual/en/function.array-push.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+55094 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55094&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55094&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55094&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55094&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55094&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55094&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55094&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#92420) next »