API Documentation for: 1.1.1
Show:

ifsetor Class

Namespace: global

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

(
  • val
  • {mixed]
)
Mixed

Parameters:

  • val Mixed

    The 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

Item Index