I want to call variable from another PHP page. Example:
I have PHP page called index.php, and there is an array like:
<$php
$arr = array("banana","apple","orange");
$>
I’ve created one another PHP page: home.php and I want to call array ($arr) from index.php to home.php.
How can i do this?
I want to assume that
index.phpandhome.phpare different pages and youcan notinclude one in the otherThen you can use session :
index.phphome.php