isset

(unknown)

isset -- Determine whether a variable is set

Description

int isset ( mixed var)

Returns TRUE if var exists; FALSE otherwise.

If a variable has been unset with unset(), it will no longer be isset().

$a = "test";
echo isset ($a); // true
unset ($a);
echo isset ($a); // false

See also empty() and unset().