Register array into global?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
biz0r
Forum Newbie
Posts: 13
Joined: Mon Oct 27, 2003 3:21 pm
Location: Houston, TX

Register array into global?

Post 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?
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: Register array into global?

Post 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.
biz0r
Forum Newbie
Posts: 13
Joined: Mon Oct 27, 2003 3:21 pm
Location: Houston, TX

Re: Register array into global?

Post by biz0r »

God dammit I feel retarded...you know its just one of those days I suppose.

Thanks...

I need coffee....
Post Reply