Without specifically doing so,
Like:
function init($var){
$var = 'x';
}
function a(){
init($foo);
echo $foo; // should be x
}
Something like the list() function :)
&$var argument be optional? Because I tried to check if the argument is false and it doesn't seem to assign itnull for the parameter: function init(&$var = null).Sure. You can pass the parameter by reference. So you have to change this
function init($var)
into this:
function init(&$var)