View Full Version : global array declaration

06-14-2006, 01:41 PM
I have an array $delete_entry[]

I want to take some values from a function and use them in another function.
The variables inside the new function would be of the type

I am using globals in order to do this like
global $id;

What's the appropriate global declaration for the array?

Kid Charming
06-14-2006, 03:59 PM
You'd declare it just like any other variable:

function foo()
global $x;

$x = array('bar' => '5','blah' => '6');


EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum