note 104374 deleted from language.types.null by danbrown
| From: | danbrown@php.net | Date: | Sun, 12 Jun 2011 21:05:34 +0000 |
| Subject: | note 104374 deleted from language.types.null by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-180456@lists.php.net to get a copy of this message | ||
Note Submitter: pike-php at kw dot nl
----
Since there's no way to pass an undefined variable to a function, this construct
foo($bar="quz") {
print $bar;
}
will only work when called something like this
if (!$bar) foo();
else foo($bar);
(which stumped me .. )