makeSet

Check that the variable passed as $name is set, and if not, set with the specified $default.

Note that $name is passed by reference, so it will be established in the caller's context if not already set. The value of $name is returned for convenience as well.

Parameters
mixed &$name

Passed by reference variable. Will be created if is not set.

#
mixed $default

The default to use if $name is not set

#
Returns
mixed

the value in $name