note 31370 added to language.variables.scope

From: Date: Fri, 18 Apr 2003 23:05:14 +0000
Subject: note 31370 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-46798@lists.php.net to get a copy of this message
Regarding Note of 19-Sep-2002: This is incorrect. The following code works as expected: -------------------------------- Function foobar() { global $a; $a=5; } Foobar(); echo $a; -------------------------------- And will output "5", as of PHP 4.2.x -- http://www.php.net/manual/en/language.variables.scope.php http://master.php.net/manage/user-notes.php?action=edit+31370 http://master.php.net/manage/user-notes.php?action=delete+31370 http://master.php.net/manage/user-notes.php?action=reject+31370

« previous php.notes (#46798) next »