note 38670 deleted from function.http-build-query by nlopess
| From: | nlopess@php.net | Date: | Fri, 02 Jan 2004 11:49:38 +0000 |
| Subject: | note 38670 deleted from function.http-build-query by nlopess | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-62777@lists.php.net to get a copy of this message | ||
Note Submitter: anner@eigengang.nl
----
I've write this function :), so if you include the below function, you can use this function.
function http_build_query($query, $nummeric_prefix = "")
{
$return_query = "";
foreach ($query as $key => $value)
{
if (preg_match("/^[0-9]/", $key))
{
$key = $nummeric_prefix . $key;
}
$value = urlencode($value);
$return_query .= ($return_query != "") ? "&$key=$value" :
"$key=$value";
}
return $return_query;
}