function foo($bar,$barbar,$option="") {}
Is there a proper term for $bar etc., and/or name for optional variables?
function foo($bar,$barbar,$option="") {}
Is there a proper term for $bar etc., and/or name for optional variables?
 
    
     
    
    In that example, $bar is a parameter.  Given your example, in a call of foo(1, 2, 3); the value 1 would be an argument.  See this question for the distinction.  (tl;dr version: parameters are the slots/variables that hold the arguments.)
$option is an optional parameter.