On Sat, Sep 7, 2013 at 6:55 PM, Matthew Leverton <[email protected]> wrote:
>
> The OCD in me shudders to think about now having to parse through
> people's code like:
>
> substr('length' => 1, 'string' => 'Hello World');
>
Hi, Matthew
Wouldn't this just fail, because one required parameter is omitted?
You can just leave out parameters, that have a default-value.
Otherwise it's treated like calling:
substr('Hello World');
// Warning: substr() expects at least 2 parameters, 1 given in php
shell code on line 1
I would return the same, even so the parameter-count is 2, but the 2nd
parameter is missing, but required.
Bye
Simon