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
--
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]