note 36748 deleted from reserved.variables by didou
| From: | didou@php.net | Date: | Tue, 21 Oct 2003 12:16:22 +0000 |
| Subject: | note 36748 deleted from reserved.variables by didou | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-59029@lists.php.net to get a copy of this message | ||
Note Submitter: niko@nnyman.com
----
One more function to add or replace GET parameters. I'm definitely not a PHP pro but this seems
to work ok for me. There's a slight beauty flaw in the form of an additional & at the end
of the query string but it shouldn't do any harm.
function returnQueryStrFrom_GET()
{
$r = "";
foreach ($_GET as $key => $value) { $r .= $key.'='.$value.'&'; }
return $r;
}