can i declare an array global which retains its value throughout the session
Please help me!
Thnks in advance
Yes, that is what $_SESSION is for.
$data = array('foo', 'bar', 'baz');
$_SESSION['data'] = $data;
// go to page 2
$data = $_SESSION['data'];
it's probably easier to work in the $_SESSION superglobal directly though.