note 21703 added to language.variables.predefined
| From: | jclayton at fn dot net | Date: | Thu, 23 May 2002 19:07:57 +0000 |
| Subject: | note 21703 added to language.variables.predefined | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-30953@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;
}
--
http://www.php.net/manual/en/language.variables.predefined.php
http://master.php.net/manage/user-notes.php?action=edit+21703
http://master.php.net/manage/user-notes.php?action=delete+21703
http://master.php.net/manage/user-notes.php?action=reject+21703