Yes. If you specify a default value in the function definition PHP treats it as an optional variable. For example, in this code
function foobar($name, $age, $location = '') { ... }
PHP will throw an error if you don't pass the function with at least two arguments. The third argument is optional, and if it is not specificed, e.g., you call foo('Jim', 25);, it will have a value of '' within the function.