function shUrlEncodeDeep($data) { if (is_array($data)) { foreach ($data as $key => $element) { $data[$key] = shUrlEncodeDeep($element); } return $data; } else { return urlencode($data); } }
/** * Parses raw querystring and returns an array of it * * @param string $querystring The querystring to parse * @return array An array of the querystring data * @access private */ function _parseRawQuerystring($querystring) { $arr = array(); parse_str($querystring, $arr); $return = shUrlEncodeDeep($arr); return $return; }