how to pass a function parameter as optional or as a default setting in php code example
Example: php optional parameter
function dosomething($var1, $var2, $var3 = 'somevalue'){
// Rest of function here...
}
function dosomething($var1, $var2, $var3 = 'somevalue'){
// Rest of function here...
}