note 33640 rejected from function.unset by didou
| From: | didou@php.net | Date: | Wed, 02 Jul 2003 16:12:03 +0000 |
| Subject: | note 33640 rejected from function.unset by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-51374@lists.php.net to get a copy of this message | ||
Note Submitter: brian from alternativewriting.com
----
is it possible to use the unset() command to remove variables from an array? for example $keywords
is an array of words in a search engine i made. Would this code work to remove simple words from it
such as 'a', 'an', or 'in'...
foreach($keywords as $test)
{
if ($test = "a")
{unset($test);}
if ($test = "an")
{unset($test);}
if ($test = "in")
}