Re: [PHP] Help with a variable

2001-07-09 Thread Adrian Murphy

isset() function
- Original Message - 
From: "James Bartlett" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, July 09, 2001 12:43 PM
Subject: [PHP] Help with a variable


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



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




RE: [PHP] Help with a variable

2001-07-09 Thread Adrian Ciutureanu

http://php.net/isset

> -Original Message-
> From: James Bartlett [mailto:[EMAIL PROTECTED]]
> Sent: 9 iulie 2001 14:44
> To: [EMAIL PROTECTED]
> Subject: [PHP] Help with a variable
> 
> 
> 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
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Help with a variable

2001-07-09 Thread James Bartlett

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