note 18285 added to function.array-splice
| From: | steve at hynding dot com | Date: | Thu, 17 Jan 2002 07:09:10 +0000 |
| Subject: | note 18285 added to function.array-splice | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-24967@lists.php.net to get a copy of this message | ||
Values removed from the array are returned as an array as such:
$letters = array("a","b","c");
$removed_val = array_splice($letters, 1, 1);
print_r($removed_val);
Printed Result:
Array ( [0] => b )
--
http://www.php.net/manual/en/function.array-splice.php
http://master.php.net/manage/user-notes.php?action=edit+18285
http://master.php.net/manage/user-notes.php?action=delete+18285
http://master.php.net/manage/user-notes.php?action=reject+18285