note 10488 deleted from functions.arguments by nikic
| From: | nikic@php.net | Date: | Wed, 30 Apr 2014 15:41:13 +0000 |
| Subject: | note 10488 deleted from functions.arguments by nikic | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199390@lists.php.net to get a copy of this message | ||
Note Submitter: marvinalone at gmx dot net
----
Nice to know is this:
If you call a function giving an unset variable, it will be unset in the function. Consider this:
<?php
function my_test ($var) {
if (isset ($var)) echo ("set");
}
my_test ($unused);
?>
This will _not_ echo "set", regardless of the variable being passed by value or by
reference.
(If my newlines are messed up, sorry, this seems to be a konqueror problem)