NYCPHP Meetup

NYPHP.org

[nycphp-talk] $$ question

Peter Sawczynec ps at pswebcode.com
Wed May 25 21:22:54 EDT 2005


Man, I gotta party after that round. But seriously I think variable
variables belongs "forever in the dog pound". So streamlined and clean --
like looking at a Bang & Olufsen. Why have five moving parts when you only
need two or none. 

   

-----Original Message-----
From: talk-bounces at lists.nyphp.org [mailto:talk-bounces at lists.nyphp.org] On
Behalf Of Andrew Yochum
Sent: Wednesday, May 25, 2005 5:01 PM
To: NYPHP Talk
Subject: Re: [nycphp-talk] $$ question


On Wed, May 25, 2005 at 04:53:10PM -0400, Michael Southwell wrote:
> At 04:23 PM 5/25/2005, you wrote:
> aargh!! scope!

Eh... scope is over-rated anyway.  Here's an easy fix:

function somefunction() {
	for ($key in array_keys($GLOBALS)) global $$key;
	...
}

;-)

Andrew

-- 
Andrew Yochum
Plexpod
andrew at plexpod.com
718-360-0879
_______________________________________________
New York PHP Talk Mailing List
AMP Technology
Supporting Apache, MySQL and PHP
http://lists.nyphp.org/mailman/listinfo/talk
http://www.nyphp.org





More information about the talk mailing list