RE: [PHP] Simple array question, part 2
| From: | Jay Blanchard | Date: | Wed, 06 Apr 2005 16:45:40 +0000 |
| Subject: | RE: [PHP] Simple array question, part 2 | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-212446@lists.php.net to get a copy of this message | ||
[snip]
Nope, array_pop is just deleting the last key/value....i need to reindex
it
without deleteing anything.
[/snip]
Always reply to the list ('reply all') as the individual who answered
you might not be there. Always. I mean it.
You shouldn't just delete an item from an array, it is improper
handling....
Thats right, it's not array_pop(), its array_shift()...musta' had a
brain fart and you didn't see the other array functions....