note 97953 rejected from language.variables.superglobals by degeberg
| From: | degeberg@php.net | Date: | Tue, 18 May 2010 10:06:35 +0000 |
| Subject: | note 97953 rejected from language.variables.superglobals by degeberg | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-169346@lists.php.net to get a copy of this message | ||
Note Submitter: rsrs07 at gmail dot com
----
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.