Re: Removing arrayentries
| From: | Torsten Ueberschar | Date: | Tue, 29 Apr 2003 16:12:28 +0000 |
| Subject: | Re: Removing arrayentries | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-145672@lists.php.net to get a copy of this message | ||
Fine, Tnx !
Torsten
"Beoi 7308" <beoi.7308@cpam-tourcoing.cnamts.fr> schrieb im Newsbeitrag
news:3EAE9B1E.55FAEC09@cpam-tourcoing.cnamts.fr...
> 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']);
>
>
>