Re: assigning NULL to a variable
| From: | Marek Kilimajer | Date: | Wed, 07 Apr 2004 22:18:20 +0000 |
| Subject: | Re: assigning NULL to a variable | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-182734@lists.php.net to get a copy of this message | ||
William Lovaton wrote:
El mar, 06-04-2004 a las 07:41, Marek Kilimajer escribió:No - NULL is not the same as unset() and the condition would evaluate to true even if $var === 0Andy B wrote:what about: if ($var == '') unset($var);how would you assign NULL to a variable if its original value is ""? otherwise leave it with its value...if($var === '') $var = NULL;