note 21703 deleted from language.variables.predefined by philip
| From: | philip@php.net | Date: | Sun, 08 Dec 2002 02:24:30 +0000 |
| Subject: | note 21703 deleted from language.variables.predefined by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-40507@lists.php.net to get a copy of this message | ||
for redirection purposes it is often necessary to generate a query string from POST/GET/_REQUEST
variables, but not necessarily the same string that was passed to you (if one was passed at all)
to count the keys in an array is easy (sizeof or count) - i needed one to count keys in the new
query string
for those who might find it useful, here is what i wrote for that purpose
function count_query_args($qstring)
{
return (strlen($qstring)) ? count(explode("&",$qstring)) : 0;
}