array passing in URLs, hypothetical example

Top Page
Author: PHP Web Development
To: PHP Mailing List
Subject: array passing in URLs, hypothetical example
I found a semi-answer to this from Devshed, but the code from didn't work. After some
tinkering, here's what I came up with:

$arrayVar=array("a", "b", "c");
header("Location: test2.php?arrayVar=$arrayVar");

//you should see a 'b'

As a note, if the urlencode and urldecode are skipped, the above
seems to produce the same output.
The number one hint or tip is this: rolling sushi is a
self-correcting process. If your first roll does not turn out quite
right, eat it to hide the evidence and roll another, which will be
much better.- Mark Hutchenreuther
PHP Web Development Mailing List
php@??? (#PHP @
Searchable Archives: