Re: [PHP4BETA] named parameters?
| From: | Andi Gutmans | Date: | Sat, 23 Oct 1999 09:11:53 +0000 |
| Subject: | Re: [PHP4BETA] named parameters? | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-5654@lists.php.net to get a copy of this message | ||
At 08:44 AM 10/23/99 +0200, Boris Erdmann wrote:
Well, couldnt this be resolved by: function test($argv) { ; } and interpreting test((foovar=>"fooval", barvar=>"barval")); as test(array(foovar=>"fooval", barvar=>"barval")); ? This would make it even simple to do an argument check by simply traversing the keys of $argv. Just asking...Sure, you can emulate this kind of behavior with arrays but it would be pretty slow. (Although I am pretty sure we can't leave out the array()). Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/