static function rmQuery($sString) { $iStart = strpos($sString, "?"); return $iStart === false ? $sString : substr($sString, 0, $iStart); }