URIHandlerIF.uriHasProtocol

Checks if the protocol of a given valid URI matches @protocol.

interface URIHandlerIF
static
bool
uriHasProtocol
(
string uri
,
string protocol
)

Parameters

uri string

a URI string

protocol string

a protocol string (e.g. "http")

Return: %TRUE if the protocol matches.

Meta