note 99074 added to language.variables.scope

From: Date: Mon, 26 Jul 2010 13:34:37 +0000
Subject: note 99074 added to language.variables.scope
Groups: php.notes 
Request: Send a blank email to php-notes+get-171127@lists.php.net to get a copy of this message
Another way of working with a large ammount of global variables could be the following. <?php $var = "3"; $smarty = new Smarty(); function headers_set_404() { extract($globals); echo $var . "<br />"; print_r($smarty); return; } ?> Regards, Droope ---- Server IP: 69.147.83.197 Probable Submitter: 201.231.72.67 ---- Manual Page -- http://www.php.net/manual/en/language.variables.scope.php Edit -- https://master.php.net/note/edit/99074 Del: integrated -- https://master.php.net/note/delete/99074/integrated Del: useless -- https://master.php.net/note/delete/99074/useless Del: bad code -- https://master.php.net/note/delete/99074/bad+code Del: spam -- https://master.php.net/note/delete/99074/spam Del: non-english -- https://master.php.net/note/delete/99074/non-english Del: in docs -- https://master.php.net/note/delete/99074/in+docs Del: other reasons-- https://master.php.net/note/delete/99074 Reject -- https://master.php.net/note/reject/99074 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#171127) next »