Page 1 of 1

Checking if variable exists

Posted: Thu Jul 31, 2003 6:39 pm
by theotheragentm
Normally I check if a variable exists using "if $variable" but I am trying to do this for a server, which I think is running an older version of PHP. The script errors out because the variable does not exist. Is there a way I can check to see if the variable exists, but without checking a value?

Posted: Thu Jul 31, 2003 6:54 pm
by Stoker
isset()

Posted: Thu Jul 31, 2003 7:07 pm
by theotheragentm
Thanks. Works like a charm.