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!
require 'page1.php';
function foo() {
global $array;
print_r($array);
}
// ...or...
function bar() {
print_r($GLOBALSї'array']); // unsure this is correct tho...
}
( Untested, at work with no time, and crap keyboard. )
I'd personally use sessions however, and there is some good tutorials in the forum (check the sticky topics and try the search).