fm_isset
bool fm_isset ( string $name
)
Description
Allows you to determine whether or not a variable exists.
Parameters
name
(required)
The name of the variable to check.
Return
Returns true if the variable exists or false if the variable does not exist.
Errors
There are no errors for this function.
Example 1 - Check a variable that exists
fm_set_variable('foo', 'bar'); echo fm_isset('foo') ? 'foo is set' : 'ain\'t no foo'; /* Returns: foo is set */
Example 2 - Check a variable that does not exist
fm_unset('foo'); echo fm_isset('foo') ? 'foo is set' : 'ain\'t no foo'; /* Returns: ain't no foo */