On Wed, October 11, 2006 2:21 pm, Richard Lynch wrote:
> If you really really really know what you are doing, you can do this:
And if you make no typos like I just did... :-)
> function example($name){
// > global $name; //Whoops!
global $$name; //note the TWO $ symbols!
>
> echo "The variable $name has the value: ", $$name;
> }
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some starving artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php