note 95540 deleted from function.func-get-args by danbrown
| From: | danbrown@php.net | Date: | Fri, 08 Jan 2010 02:30:02 +0000 |
| Subject: | note 95540 deleted from function.func-get-args by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-164770@lists.php.net to get a copy of this message | ||
Note Submitter: jaimie at seoegghead dot com
----
Yet another (but more robust) implementation of *both* named parameters && parameter
skipping --
"PHP Skipped and Named Parameters" under http://seoegghead.com/software/
By including this line at the top of any function:
"include(par.php); // hook in the Par code"
One can do this:
getUsers(_, _, $username); // Note the underscores.
-or-
getUsers(_, PAR('username', $username));
There is a bit of overhead, but only where it is used.