[EMAIL PROTECTED] wrote
>>I cannot read code that looks like fn(,,,,foo,,,,bar);, that is just a >>parameter-guessing-game! just that a feature may be misused can't be a reason against it IMHO > Of course, that looks likes crap, but one parameter not specified is not > a problem IMO. especialy if you could give the middle parameter a default value right now you end up with <?php function foo($bar, $opt1, $opt2) { if($opt1==NULL) $opt1="default1"; if($opt2==NULL) $opt2="default2"; echo "foo($bar, $opt1, $opt2)\n"; } foo(1,null,2); foo(1,2,null) ?> i think the following would be an improvement here: <?php function foo($bar, $opt1="default1", $opt2="default2") { echo "foo($bar, $opt1, $opt2)\n"; } foo(1,,2); foo(1,2); ?> -- Hartmut Holzgraefe [EMAIL PROTECTED] http://www.six.de +49-711-99091-77 -- PHP Development Mailing List <http://www.php.net/> To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]