In the PHP manual, to show the syntax for functions with optional parameters, they use brackets around each set of dependent optional parameter. For example, for the date()
Much like the manual, use an equals (=) sign in your definition of the parameters:
=
function dosomething($var1, $var2, $var3 = 'somevalue'){ // Rest of function here... }