TeamSpeak3/Helper/Uri.php
public static function check($uri)
    {
        try {
            $uri = new self(strval($uri));
        } catch (Ts3Exception $e) {
            return false;
        }

        return $uri->valid();
    }
public static function check($uri)
    {
        try {
            $uri = new self(strval($uri));
        } catch (Ts3Exception $e) {
            return false;
        }

        return $uri->valid();
    }
Returns TRUE if a given URI is valid.

@param  string $uri
@return boolean