Re: How to delete an item at index i in an index list ?
| From: | Andrei Zmievski | Date: | Wed, 07 Jun 2000 13:06:06 +0000 |
| Subject: | Re: How to delete an item at index i in an index list ? | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-20460@lists.php.net to get a copy of this message | ||
On Wed, 07 Jun 2000, clayton collie wrote:
> i have a routine that in the case of abnormal conditions should clean up by
> removing certain elements from an index list (almost always at the end). how
> can i do this programmatically at the zend API level ?
Either with zend_hash_del() or with zend_hash_apply() and returning 1
from the applied function for the entries that need to be deleted.
-Andrei
* "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis *