/** * Parses query string. * @return array */ public static function parseQuery($s) { parse_str($s, $res); if (get_magic_quotes_gpc()) { // for PHP 5.3 $res = Helpers::stripSlashes($res); } return $res; }