On Aug 13, 2005, at 11:46 AM, Matthew Weier O'Phinney wrote:

* Christian Schneider <[EMAIL PROTECTED]> :

9.  Named parameters. Preferred way would be via array()-less array
collation as we are already using this in our production system ;-) :
foo('id' => 42, 'name' => "foo");


+1 -- this is one of the biggest things I miss coming from perl to PHP.

Huh? Perl doesn't have true support for this anyway, just a simpler syntax for hashrefs. If you want Perlish named params this is 100% identical to doing

foo(array('id' => 42, 'name' => 'foo'));

George

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to