ifsetor Class
Global function to evaluate if a variable is set, or else use a default value. This is a global function.
$someValue = ifsetor($_POST['someValue'], 10);
Constructor
ifsetor
(
Mixed
-
val
-
{mixed]
Parameters:
-
val
MixedThe variable to check if isset
-
{mixed]
Object[default=null] The default value if the variable isn't set
Returns:
Mixed:
The value of the variable or the default