partly imploding an array...possible?
| From: | Ryan A | Date: | Sun, 10 Aug 2003 21:37:36 +0000 |
| Subject: | partly imploding an array...possible? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-159060@lists.php.net to get a copy of this message | ||
Hi,
I have an array with around 20-50 parts in it.
This is my code: (please note that i will be getting a $_GET['page'] also)
$xxx=0;
foreach ($_GET as $a => $v) {
print "Current value of \$a:$a and \$v $v.\n <br>";
$test=$a."=".$v;
$test1[$xxx]="".$test;
$xxx++;
}
$someVar = implode( "&", $test1);
but i want to not get $test1's last component ($page) into $someVar...how do
i do that?
Or another alternative would be to delete $page and $page's value from
$someVar
Any ideas?
Thanks,
-Ryan
We will slaughter you all! - The Iraqi (Dis)information ministers site
http://MrSahaf.com