Basicaly now i thing at three ways to do this.
First is to use the require() or include() directives.I think it's mostly used.
If we have to php page(page1.php and page2.php) and in the first we declare an array will look somthing like this.
//start page1.php
$myarray=array( key1 => value1,
key2 => value2
);
//now include the second page(page2)
require("page2.php");
//end page1
The second page can address this array directly as was declared in it.
//start page2.php
$key1value1=$myarray['key1'];
//end page2.
Thats it.
If a third page is included somwhere in the page2 the thing dosen't change at all.
The second whay is to use a session.
in page1
session_start();
session_register('myarray');
$myarray['key1]='somevalue1';
$myarray['key2]='somevalue2';
in page2
session_start();
echo $myarray['key2];//will print "somevalue2"
You must put the session_start() function in all files where you wan to use this array.
The third one is via links (<a href="">) with sesrialization of data.
in page1
$myarray=array( key1 => value1,
key2 => value2
);
$str_array=serialize($myarray);
echo "<a href='page2.php?str_array=$str_array'>goto page2</a>";
in the second page
$m_str_array=$HTTP_GET_VARS['str_array'];
$myarray=unserialize($m_str_array);
That's all im my mind now.I'm sure it's posible to do this in other ways too.
Hope to help.
Bye.