u can define a default parameter for this
eg:
function makecoffee ($type = "cappucino") {
return "Making a cup of $type.\n";
}
echo makecoffee ();
echo makecoffee ("espresso");
//The output from the above snippet is:
Making a cup of cappucino.
Making a cup of espresso.
// when u do not sprcify a value a function assumes the default value when a default value is specified
for details refer php manual