//PHP - Optional parameters function justAFunctionWithOptionals($param1 = null, $param2 = null, $param3 = null){ //Some code.. } justAFunctionWithOptionals(null, "something", null);
function dosomething($var1, $var2, $var3 = 'somevalue'){ // Rest of function here... }