note 10488 added to Function arguments

From: Date: Sat, 06 Jan 2001 23:19:46 +0000
Subject: note 10488 added to Function arguments
Groups: php.notes 
Request: Send a blank email to php-notes+get-9440@lists.php.net to get a copy of this message
Nice to know is this: If you call a function giving an unset variable, it will be unset in the function. Consider this: 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) http://www.php.net/manual/functions.arguments.php

« previous php.notes (#9440) next »