accessing array from another page in php
<p>I would like to know how can I access or read the array from another page. I am working on a PHP page which contains the array, and I want to display the content of that array on another PHP page. </p>

<p>For example, I used the following method in a PHP file and I want to get the content of the array in another PHP file. what is the method that is going to receive the array's content in the second page.</p>

<pre><code>&lt;?php
$r = new HttpRequest('http://localhost/sameh.php', HttpRequest::METH_POST);
$r-&gt;addPostFields(array("n" =&gt; 'heba')) ;
$r-&gt;send();
?&gt;
</code></pre>

<p>This code is in the first page but I don't know what to write to receive it on the second one.</p>

<p>Maybe my question was not that clear and sorry about that ,, I want to find a way to access the array that is defined inside the HttpRequest() class on another page. So that the array "n" that include value "heba" will be displayed on another.php page. this is what make me thinking that the problem is on how to access the content of the array on the second page.</p>

<p>I tried the session and It sends the array to another page ,, but when I tested with the
httpRequest() method it doesn't send the content of the array "heba" to the second page.</p>

<p>Thanks for your help.</p>
