What does the &
sign before the parameter $var
do?
function setdefault(&$var, $default="")
{
if (! isset($var))
{
$var = $default;
}
}
Passes it by reference.
Huh? Passing by reference means that you pass the address of the variable instead of the value. Basically you're making a pointer to the variable.