Sanitize and validate an email address

Returns valid email address, or blank string if it isn't valid.

Usage

$string = $sanitizer->email(string $value);

Arguments

NameType(s)Description
$valuestring

Email address to sanitize and validate.

Return value

string

Sanitized, valid email address, or blank string on failure.


$sanitizer methods and properties

API reference based on ProcessWire core version 3.0.97