Re: Removing arrayentries
| From: | BEOI 7308 | Date: | Tue, 29 Apr 2003 15:32:46 +0000 |
| Subject: | Re: Removing arrayentries | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145669@lists.php.net to get a copy of this message | ||
Torsten Ueberschar a écrit :
> Hi list,
>
> i'd like to remove an entry of an array. I know the key. Is there any
> standard PHP function to do this, or must I create a new array and copy all
> entries (less the one) to the new ?
Unset should do it
http://www.php.net/manual/en/function.unset.php
ex : unset ($array['key']);