email() public static method

Validate email
Deprecation: See JBZoo\Utils\Email
public static email ( $email ) : mixed
$email
return mixed
Beispiel #1
0
 /**
  * @param string $email
  * @param string $name
  * @return bool
  */
 public function setFrom($email, $name = null)
 {
     $this->_from = array();
     if ($email = Filter::email($email)) {
         $this->_from[0] = $email;
         $this->_from[1] = $name;
         return true;
     }
     return false;
 }