VerifiedURL::isValid()

Is the URL valid and verified?

By default returns true if valid, false if URL produced an error, or integer 1 if status not-yet-determined. The not-yet-determined value can be overridden with the $fallbackValue argument.

Usage

// basic usage
$bool = $verifiedURL->isValid();

// usage with all arguments
$bool = $verifiedURL->isValid($fallbackValue = 1);

Arguments

NameType(s)Description
$fallbackValue (optional)bool int

Value to return if status not yet known

Return value

bool int


VerifiedURL methods and properties

API reference based on ProcessWire core version 3.0.260