Revision: 14462
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at June 4, 2009 16:09 by iloveitaly
Initial Code
function getQueryString(Array $newQuery, $keepOld) { static $currentQueryArray; // check to see if the current if(!is_array($currentQueryArray)) { $currentQueryArray = array(); parse_str($_SERVER['QUERY_STRING'], $currentQueryArray); } if($keepOld) $newQueryArray = array_merge($currentQueryArray, $newQuery); else $newQueryArray = $newQuery; return http_build_query($newQueryArray); }
Initial URL
Initial Description
More of a setQueryString
Initial Title
Create Query String
Initial Tags
php, query, update
Initial Language
PHP