note 97953 added to language.variables.superglobals

From: Date: Tue, 18 May 2010 10:02:05 +0000
Subject: note 97953 added to language.variables.superglobals
Groups: php.notes 
Request: Send a blank email to php-notes+get-169345@lists.php.net to get a copy of this message
To my knowledge, there is no way to construct new superglobals, which would be a nice feature for the next version of PHP. For example, if you have a database connection which was somewhere created like this: <?php $db = new dbConn(); ?> it would be nice if one could use it inside every function, class, ... without having to declare it global first. ---- Server IP: 212.124.37.9 Probable Submitter: 132.230.191.116 ---- Manual Page -- http://www.php.net/manual/en/language.variables.superglobals.php Edit -- https://master.php.net/note/edit/97953 Del: integrated -- https://master.php.net/note/delete/97953/integrated Del: useless -- https://master.php.net/note/delete/97953/useless Del: bad code -- https://master.php.net/note/delete/97953/bad+code Del: spam -- https://master.php.net/note/delete/97953/spam Del: non-english -- https://master.php.net/note/delete/97953/non-english Del: in docs -- https://master.php.net/note/delete/97953/in+docs Del: other reasons-- https://master.php.net/note/delete/97953 Reject -- https://master.php.net/note/reject/97953 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#169345) next »