passing array from one page to another in php
<p>How can I pass array value from one page to another in php and retrieve value of that array in another page.
I have use array_push function to insert value of database in array using loop as below.</p>

<pre><code>array_push($file_names,$row['sVoiceFileName'])));
</code></pre>

<p>Now, I want to pass $file_array variable to another page. I have try below code to pass array but doesn't works.It only shows Array in the url.</p>

<pre><code>echo "&lt;a href='download.php?voice=". $file_names."'&gt; ". "Download All"."&lt;/a&gt;";
</code></pre>

<p>Is there any alternative way to pass array to another page or using post method. And How can I retrieve value in another page.
 Here I am trying to download all the file included in array as zip. For that I have function </p>

<pre><code>function zipFilesAndDownload($file_names,$archive_file_name,$file_path)
</code></pre>

<p>in another page. I need to pass $file_names array to that function.</p>
