SyntaxFix
Write A Post
Hire A Developer
Questions
Much like the manual, use an equals (=) sign in your definition of the parameters:
=
function dosomething($var1, $var2, $var3 = 'somevalue'){ // Rest of function here... }