Kick one of these darn elements out of my array, I aint having it!
| From: | Brandon Orther | Date: | Mon, 12 Mar 2001 18:38:04 +0000 |
| Subject: | Kick one of these darn elements out of my array, I aint having it! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-43514@lists.php.net to get a copy of this message | ||
Hello,
I want to take one element out of an array, is there a way to remove an
element and have the array resorted so there isn't a blank spot where I
remove the elements? Here is an example if the above text made no sense.
Example: $array = Array("1", "2", "3", "4");
So: $array[0] = 1, $array[1] = 2, $array[2] = 3, $array[3] = 4
I want to kick $array[2] out and have $array[3] be moved to $array[2]
Thank you,
--------------------------------------------
Brandon Orther
WebIntellects Design/Development Manager
brandon@webintellects.com
800-994-6364
www.webintellects.com
--------------------------------------------