Returns false if the email is not in a correct format (if the email is not valid)
if (filter_var($email, FILTER_VALIDATE_EMAIL)) {
    $this->addError('email', 'email must be a valid email');
}
by Valeri Tandilashvili
4 years ago
PHP
functions
Object Oriented PHP Tutorial
2
Pro tip: use ```triple backticks around text``` to write in code fences