://MrSahaf.com
- Original Message -
From: "skate" <[EMAIL PROTECTED]>
To: "Ryan A" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Sunday, August 10, 2003 9:23 PM
Subject: Re: [PHP] Half solved (was foreach in search)
>
> >
> > $s
>
> $someVar=$test[0]. "&" .$test[1]. "&" .$test[2].etc
>
$someVar = implode( "&", $test );
... should do the trick
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
> implode.why the [EMAIL PROTECTED] didnt i think of that??
> Thanks dude.
> Just one last question, the last variable i am getting is page=1, how do i
> increase this?
> Basically I need to do a $page++
>
so do it then
$xxx=0;
foreach ($_GET as $a => $v) {
print "Current value of \$a
Hi,
I am getting a lits of GET values and dumping the variable and the value
into an array like so:
$xxx=0;
foreach ($_GET as $a => $v) {
print "Current value of \$a:$a and \$v $v.\n ";
$test=$a."=".$v;
$test1[$xxx]="".$test;
$xxx++;
}
So now $test1[] contains the whole GET's variable
4 matches
Mail list logo