note 27507 deleted from functions.arguments by nikic
| From: | nikic@php.net | Date: | Wed, 30 Apr 2014 15:37:40 +0000 |
| Subject: | note 27507 deleted from functions.arguments by nikic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199385@lists.php.net to get a copy of this message | ||
Note Submitter: bostjan dot skufca at domenca dot com
----
have function
function foo($bar=3) {
if (!isset($bar)) {
echo "I'm not set to my default value";
}
and if you do
foo($some_unset_variable);
the $bar variable does not adopt default value (3) as one might expect but it is not set.