Well, the way you really should do it...
$GLOBALS['myArray']
...you can declare that from anywhere.
Why is this better?
Well...
<?
function myfunc() {
$GLOBALS['myArray'] = value;
}
myfunc();
echo $GLOBALS['myArray'];
?>
The fact that we have no confusion as to what scope that var is coming from. And we have consistancy as any global is going to be written to $GLOBALS anyway...
<?
print_r($GLOBALS);
?>
..check it out, you can access the PHP auto-globals by calling them...
$GLOBALS['COOKIE']
$GLOBALS['PHPSESSID']