title: pass array between two php files
body: <p>I have a php file that needs to redirect to another, but I need to pass an array to the second file.  How can I do this.</p>
  
  <p>I know this is wrong, but I need something logically similar to this.</p>
  
  <pre><code>&lt;?php 
         $arr = array('this'=&gt;'is', 'some'=&gt;'stuff');
         header("someurl.php", vals=&gt;$arr);
   ?&gt;
  </code></pre>