通过重定向PHP发送数组

I'm trying to send an array to another page, such that when I get the array on the next page, only the array shows up and not the values. I then want to extract the values individually. I'm using the following code below. While this code works, on the redirect page, it returns 0=555928038&1=1694191&2=359564591&3=33280807&4=918458113 in the url. I don't want to see these values in the url. I want to see just the array and then I want to extract the values. What can I do to change this header redirect?

header('Location: twittercurlusershow.php?' . http_build_query($arrayoffollowers));

Store the array somewhere else (database, filesystem, session) along with a unique identifier. Attach the identifier to the URL. On the target page, restore the array from the identifier.

Alternatively, serialize and base64-encode the array, add it to the url as a request variable and on the target page, base64-decode and unserialize it. This is only feasible for small arrays because the maximum length of URLs a Browser can handle might be as low as 2083 bytes.

You could use the $_SESSION variable to store the array on your original page and then call it up from twittercurlusershow.php.

Here is a tutorial on using $_SESSION.