remove element from array
| From: | Erb, Maria | Date: | Mon, 03 Jul 2000 17:41:10 +0000 |
| Subject: | remove element from array | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-4535@lists.php.net to get a copy of this message | ||
hi all,
How can I remove an element from the middle of an array? I've tried unset
but it doesn't seem to completely remove everything. I am serializing an
array and then storing it in MySQL and with unset, not all of the codes or
encryption (don't know if this is the right term) associated with the
serializing was removed. Anyway, is there another way to do this task?
I've tried moving the element to the end of the array and then popping it
off, but that still doesn't get rid of it from its original place in the
array. I'm using php4. Thanks for the help!!!
Maria
Maria B. Erb
Web Developer
Keene State College
603-358-2340
mail address:
MS 2707 / CMIT
229 Main Street
Keene, NH 03435