Symbolic References and the global namespace

From: Date: Tue, 29 Feb 2000 00:26:20 +0000
Subject: Symbolic References and the global namespace
References: 1 2  Groups: php.pear 
Request: Send a blank email to php-pear+get-27@lists.php.net to get a copy of this message
I am developing a function for PEAR that will automatically load configuration files into PHP, anyway, I want to make the configuration options variables in the global namespace however in order to this I assume you would have to do the following: --short example-- class Bar { function set () { $name = "Sterling"; $GLOBALS[$$name] = "Hughes"; } } Bar::set(); print $Sterling; //I'll save you the suspense it prints nothing, nada, zip, ... -- End Short Example -- Is there any way to achieve the desired affect (or should I request this as a feature change)? Sterling Hughes sterling@designmultimedia.com

« previous php.pear (#27) next »