note 70299 added to language.variables.scope

From: Date: Tue, 10 Oct 2006 22:15:11 +0000
Subject: note 70299 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-118373@lists.php.net to get a copy of this message
a little notice: in php 4.4.x when your PHP Code gets eval()'d (don't ask) global will will only make the last var used global. Use a new global instruction for every var you want to make global and save yourself some headache! ex a: global $a, $b, $c; -> only $c appears to be global ex b: global $a; global $b; global $c; -> all 3 vars are global maybe it's just the messed up code i'm working on but you never know ---- Server IP: 217.160.72.57 Probable Submitter: 81.173.152.152 ---- Manual Page -- http://www.php.net/manual/en/language.variables.scope.php Edit -- https://master.php.net/note/edit/70299 Del: integrated -- https://master.php.net/note/delete/70299/integrated Del: useless -- https://master.php.net/note/delete/70299/useless Del: bad code -- https://master.php.net/note/delete/70299/bad+code Del: spam -- https://master.php.net/note/delete/70299/spam Del: non-english -- https://master.php.net/note/delete/70299/non-english Del: in docs -- https://master.php.net/note/delete/70299/in+docs Del: other reasons-- https://master.php.net/note/delete/70299 Reject -- https://master.php.net/note/reject/70299 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#118373) next »