Re: How to remove a value from a array
| From: | Ruslan Ohitin | Date: | Wed, 11 Jul 2001 07:53:10 +0000 |
| Subject: | Re: How to remove a value from a array | ||
| References: | 1 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-8240@lists.php.net to get a copy of this message | ||
Hi Steen,
See array_splice() in manual
SR> Hi
SR> How can I remove a vale from a array()
SR> eg;
SR> $a = array("1","2","3");
SR> if I then unset($a[1]) the value is NULL, or the offset is empty, and you get a error if yoy
SR> try to access that element.
SR> What I want/need is a function whic can remove a valy/key from a array
SR> Does such a function exists ?
SR> Thanks in advance
SR> Steen
--
Best regards,
Ruslan Ohitin
mailto:rus@bagan.ru