note 43606 added to function.array-splice
| From: | Pytkin at rn2 dot php dot net | Date: | Sun, 27 Jun 2004 22:30:47 +0000 |
| Subject: | note 43606 added to function.array-splice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-71977@lists.php.net to get a copy of this message | ||
Manual said :
$input = array("red", "green", "blue", "yellow");
array_splice($input, 2);
// $input is now array("red", "green")
Try it :
$input = array("red", "green", "blue", "yellow");
print_r (array_splice($input, 2));
=>
Array ( [0] => blue [1] => yellow )
----
Manual Page -- http://www.php.net/manual/en/function.array-splice.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+43606
Delete -- http://master.php.net/manage/user-notes.php?action=delete+43606&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+43606&report=yes
Search -- http://master.php.net/manage/user-notes.php