Re: make a variable not exist?
| From: | Alex Earl | Date: | Thu, 12 Jun 2003 21:22:03 +0000 |
| Subject: | Re: make a variable not exist? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-151314@lists.php.net to get a copy of this message | ||
>
> Is there a way to make a variable not exist? There are several places
> where I test (!$variable), and I want to be able to change the
> variable to pass that test, even though it exists, under certain
> circumstances.
>
> Thanks.
>
You can unset the variable www.php.net/unset but also I would recommend
using if(!isset($variable)) instead of just if(!$variable) its a little
more clear as to what you are really trying to see I think.
Alex