NYCPHP Meetup

NYPHP.org

[nycphp-talk] $$ question

Andrew Yochum andrew at plexpod.com
Wed May 25 17:00:53 EDT 2005


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



More information about the talk mailing list