|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[1999-09-12 23:51 UTC] tsf at post dot cz
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");
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 05 19:00:01 2025 UTC |
or maybe at least foo("wow",,"bar") as in list()