Re: Technical question
| From: | David Newcomb | Date: | Mon, 14 Aug 2000 13:00:20 +0000 |
| Subject: | Re: Technical question | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-11591@lists.php.net to get a copy of this message | ||
Nashirak Bosk <nashirak@mindspring.com> wrote in message news:8n2jjb$qvo$1@toye.php.net...
> Ok I was wondering what happens when PHP receives no default value for a
> variable. Is the variable = to the null character ("\0") or is it just
> equal to some character like this "" .
"" is the same as '\0' in 'C' anyway.
If it has been set to nothing or is unset, then
if ($var == "") { }
will work for you.
If you want to check if it is unset then you can use isset();
Is that what you mean?
David.