Re: Removing array element by key
| From: | Jason Wong | Date: | Thu, 10 Jul 2003 20:54:35 +0000 |
| Subject: | Re: Removing array element by key | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-154796@lists.php.net to get a copy of this message | ||
On Friday 11 July 2003 04:50, jwulff wrote:
> How do i remove an element of an array by its key? I've tried
> array_s(p)lice to no avail. Either it chops too much or too little with
> seemingly no logic. The array is of unkown and variable size if that makes
> a difference. Thanks, John.
unset()
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
------------------------------------------
Search the list archives before you post
http://marc.theaimsgroup.com/?l=php-general
------------------------------------------
/*
Sometimes, too long is too long.
-- Joe Crowe
*/