PHP 4.0 Bug #2285 Updated: default arguments skipping

From: Date: Sat, 10 Feb 2001 18:44:06 +0000
Subject: PHP 4.0 Bug #2285 Updated: default arguments skipping
Groups: php.dev 
Request: Send a blank email to php-dev+get-46197@lists.php.net to get a copy of this message
ID: 2285 Updated by: jimw Reported By: tsf@post.cz Status: Open Bug Type: Feature/Change Request Assigned To: Comments: refiled against 4.0. (although you can just pass an array to get named-parameters-like behavior.) Previous Comments: --------------------------------------------------------------------------- [2000-08-17 10:40:16] hholzgra@php.net or maybe at least foo("wow",,"bar") as in list() --------------------------------------------------------------------------- [1999-09-12 23:51:41] tsf@post.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"); --------------------------------------------------------------------------- ATTENTION! Do NOT reply to this email! To reply, use the web interface found at http://bugs.php.net/?id=2285&edit=2

« previous php.dev (#46197) next »