note 101022 deleted from reflectionparameter.allowsnull by danbrown
| From: | danbrown@php.net | Date: | Mon, 22 Nov 2010 13:52:49 +0000 |
| Subject: | note 101022 deleted from reflectionparameter.allowsnull by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-174248@lists.php.net to get a copy of this message | ||
Note Submitter: bushee01 at gmail dot com
----
In this example:
function f1 ( $var1 = null, $var2, $var3 = false ) {}
only 3rd parameter is optional, even though 1st has default value too, because you have to pass 1st
and 2nd arguments to call this function anyway - hence 1st is not optional, because you can't
just ommit it.