note 24484 added to language.variables

From: Date: Sun, 18 Aug 2002 01:01:35 +0000
Subject: note 24484 added to language.variables
Groups: php.notes 
Request: Send a blank email to php-notes+get-35186@lists.php.net to get a copy of this message
If you use global variables within a function, take note that changing the variable keyword from "global", somewhere down the line, to "return", that that variable can either be one or the other. It can't be both "returned" and "global". So, if within a function you have on line x: global $var; and then on line x+1: return $var; that $var becomes no longer global, and instead just and only "returned". -- http://www.php.net/manual/en/language.variables.php http://master.php.net/manage/user-notes.php?action=edit+24484 http://master.php.net/manage/user-notes.php?action=delete+24484 http://master.php.net/manage/user-notes.php?action=reject+24484

« previous php.notes (#35186) next »