note 38720 added to function.array-splice
| From: | bharat at menalto dot com | Date: | Sun, 04 Jan 2004 22:06:21 +0000 |
| Subject: | note 38720 added to function.array-splice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-62907@lists.php.net to get a copy of this message | ||
The example says that:
array_shift($input)
is equivalent to:
array_splice($input, -1)
but that's not right. it's equivalent to:
array_splice($input, 0, 1)
----
Manual Page -- http://www.php.net/manual/en/function.array-splice.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+38720
Delete -- http://master.php.net/manage/user-notes.php?action=delete+38720&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+38720&report=yes
Search -- http://master.php.net/manage/user-notes.php