Quick array question
| From: | David Yee | Date: | Tue, 30 Oct 2001 19:03:01 +0000 |
| Subject: | Quick array question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-72911@lists.php.net to get a copy of this message | ||
Hi. Is there an array function that deletes an array element (that's not at the beginning or
the end of the array) and return the resultant array? E.g. this is what I want to do:
$a = array(1, 2, 3, 4, 5);
$b = array_element_delete_function($a, 2);
$b now has 4 elements with the following values: (1, 2, 4, 5)
Thanks.
David