note 104374 added to language.types.null
| From: | pike-php at kw dot nl | Date: | Sat, 11 Jun 2011 21:45:59 +0000 |
| Subject: | note 104374 added to language.types.null | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-180446@lists.php.net to get a copy of this message | ||
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 .. )
----
Server IP: 69.147.83.197
Probable Submitter: 92.254.50.195
----
Manual Page -- http://www.php.net/manual/en/language.types.null.php
Edit -- https://master.php.net/note/edit/104374
Del: integrated -- https://master.php.net/note/delete/104374/integrated
Del: useless -- https://master.php.net/note/delete/104374/useless
Del: bad code -- https://master.php.net/note/delete/104374/bad+code
Del: spam -- https://master.php.net/note/delete/104374/spam
Del: non-english -- https://master.php.net/note/delete/104374/non-english
Del: in docs -- https://master.php.net/note/delete/104374/in+docs
Del: other reasons-- https://master.php.net/note/delete/104374
Reject -- https://master.php.net/note/reject/104374
Search -- https://master.php.net/manage/user-notes.php