Re: removing an item from an array
| From: | Kris Craig | Date: | Wed, 15 Aug 2012 20:29:47 +0000 |
| Subject: | Re: removing an item from an array | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-62205@lists.php.net to get a copy of this message | ||
>
>
> Btw, deleting all values (not just the first) is also very easy currently:
>
> foreach (array_keys($array, $delValue) as $key) {
> unset($array[$key]);
> }
>
>
Even easier still, just do this:
$array_var = array();
--Kris