Re: Help with a variable
| From: | George Whiffen | Date: | Mon, 09 Jul 2001 15:40:30 +0000 |
| Subject: | Re: Help with a variable | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-56945@lists.php.net to get a copy of this message | ||
James Bartlett wrote:
>
> Hi,
>
> Is there some way that I can check to see if a variable is present?
>
> e.g.
>
> if (variable is not present)
> {
> set variable to 0;
> }
> else
> {
> some code that uses variable;
> }
>
> Thanks for any advice.
>
> James
isset function
variable is already 0 if !isset