(Perhaps this question has already been asked before, but I can't find it.)
What happens if you have an argument with default value preceding an argument without default value in PHP? Just like this:
function myfunction($foo = 12, $bar) {
...
}
- Does PHP give errors and if yes, on which error reporting level?
- What happens when you call
myfunction("hello")
with only one argument?