Re: Re: named function arguments
| From: | Sebastian Bergmann | Date: | Fri, 24 Oct 2003 06:52:12 +0000 |
| Subject: | Re: Re: named function arguments | ||
| References: | 1 2 3 | Groups: | php.internals |
| Request: | Send a blank email to internals+get-4951@lists.php.net to get a copy of this message | ||
netcat wrote:
> Named parameters - i think is very good idea.
Named parameters are commonly implemented using an associated array in
PHP:
<?php
function foo($parameters) {}
foo(
array(
'foo' => 'bar',
'bar' => 'foo'
)
);
?>
--
Sebastian Bergmann
http://sebastian-bergmann.de/ http://phpOpenTracker.de/
Das Buch zu PHP 5: http://professionelle-softwareentwicklung-mit-php5.de/