Yes, if there is a default value you want your function to use, but you want to be able to use some other value occasionally, create the function like this
PHP Code:
function some_function($foo, $bar = 7) {
}
Writing the function like that will allow you to call the function without a value for
$bar and it will default to 7, or you can give it a different value if you wish.