URL with http or https scheme required
Available since version 3.0.129.
Usage
// basic usage
$string = $sanitizer->httpUrl(string $value);
// usage with all arguments
$string = $sanitizer->httpUrl(string $value, array $options = []);
Arguments
Name | Type(s) | Description |
---|---|---|
value | string | URL to validate |
options (optional) | array | See the url() method for all options. |
Return value
string
Returns valid URL or blank string if it cannot be made valid.
$sanitizer methods and properties
API reference based on ProcessWire core version 3.0.236