trait UrlCheck

Validate that a URL meets the specification.

Methods

bool
isUrl(string $url)

Validate URL.

Details

at line 40
bool isUrl(string $url)

Validate URL.

Only accepts http:// and https:// protocol and ASCII characters. Other protocols and internationalised domain names will fail validation due to limitation of filter.

Parameters

string $url Input to be tested.

Return Value

bool True if valid URL otherwise false.