is it possible to have an optional reference parameter in a function??
function someFunction( $var1, &$var2 = NULL ) // doesn't work
{
if( $var2 )
{
$var2++;
}
return true;
}
I want var2 to not be required, i realize that it is referenceing some memory block and is not a local var.
if not, is it possible to have multiple function definitions with the same name but diff parms?