note 26046 added to language.variables.scope

From: Date: Wed, 16 Oct 2002 09:12:17 +0000
Subject: note 26046 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-38150@lists.php.net to get a copy of this message
morthanpurpl: You don't have to initialize variables you use first inside a variable, at least not in PHP4.2.2. The following will just work fine and output "iam": <?php function dumdum() { global $a; $a = "iam"; } dumdum(); echo $a; ?> -- http://www.php.net/manual/en/language.variables.scope.php http://master.php.net/manage/user-notes.php?action=edit+26046 http://master.php.net/manage/user-notes.php?action=delete+26046 http://master.php.net/manage/user-notes.php?action=reject+26046

« previous php.notes (#38150) next »