note 32775 deleted from language.variables.predefined by pollita
| From: | pollita@php.net | Date: | Fri, 06 Jun 2003 15:54:08 +0000 |
| Subject: | note 32775 deleted from language.variables.predefined by pollita | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-49888@lists.php.net to get a copy of this message | ||
Note Submitter:
----
I need 'User Defined Superglobal array(Variables)'.
Superglobal array is eazy using into functions(or methods of object).
-------------
* example.
<?php
set_superglobals("uds"); // predefine?
// <-> remove_superglobals()
$uds = array("love", "php");
function test ()
{
print $uds[0] . "\n";
}
class sgtest
{
function eazy ()
{
print $uds[1] . "\n";
}
}
test();
$sg = new sgtest();
$sg->eazy();
?>
* output
love
php