validators/email.php
Go to the documentation of this file.
1 <?php
7 namespace depage\htmlform\validators;
8 
12 class email extends validator
13 {
21  public function validate($email, $parameters = array())
22  {
23  return (bool) filter_var($email, FILTER_VALIDATE_EMAIL);
24  }
25 }
default validator for email input elements
validate($email, $parameters=array())
email validation
parent validator class
Definition: validator.php:14