Page 1 of 1

Register array into global?

Posted: Wed Sep 22, 2010 7:56 am
by biz0r
I know there is a function for this, but for some reason my google-fu is off and I cannot remember it for the life of me.

What is the function to export an array into the global namespace? Such that:

Code: Select all

$var=array('key'=>'val');
somefunc($var); 
echo $key;
...would work?

Re: Register array into global?

Posted: Wed Sep 22, 2010 8:14 am
by requinix
biz0r wrote:What is the function to export an array into the global namespace?
Oh, so close. If you had asked about extracting an array, I would be laughing my head off right now.

Re: Register array into global?

Posted: Wed Sep 22, 2010 9:05 am
by biz0r
God dammit I feel retarded...you know its just one of those days I suppose.

Thanks...

I need coffee....