4 ms·
I really don't mind this, I have more more control because of it. If I want the function to error out upon arg omissions, I will demand arguments. If I don't r
by headShrinker 15y ago
I really don't mind this, I have more more control because of it. If I want the function to error out upon arg omissions, I will demand arguments.
If I don't require args: function foo($arg1=null, $arg2=null) {return;}
foo(); // return no error
This is great for me, when I am writing an API and have some args that are required and others that are optional.