Bug #2285: default arguments skipping
| From: | tsf at post dot cz | Date: | Mon, 13 Sep 1999 03:51:41 +0000 |
| Subject: | Bug #2285: default arguments skipping | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-10842@lists.php.net to get a copy of this message | ||
From: tsf@post.cz
Operating system: linux
PHP version: 3.0.12
PHP Bug Type: Feature/Change Request
Bug description: default arguments skipping
when I develop apps, I tend to add more and more arguments
to my functions giving them default values for backward
compatibility. but as soon as your function has more than
14 arguments :) it gets very tiring to write them all...
it would be great if you could specify WHICH arguments you
want to pass to the function... like:
function foo($arg1, $arg2 = 0, $arg3 = "none")
{
...
}
foo("wow", $arg3 => "bar");