trait EmailCheck

Validate that email address conforms to specification.

Methods

bool
isEmail(string $email)

Check if an email address is valid.

Details

at line 39
bool isEmail(string $email)

Check if an email address is valid.

Note that valid email addresses can contain database-unsafe characters such as single quotes.

Parameters

string $email Input to be tested.

Return Value

bool True if a valid email address, otherwise false.