Inspekt\Inspekt::isEmail PHP 메소드

isEmail() 공개 정적인 메소드

Returns true if value is a valid email format, false otherwise.
또한 보기: http://www.regular-expressions.info/email.html
또한 보기: self::ISPK_EMAIL_VALID
public static isEmail ( string $value ) : boolean
$value string
리턴 boolean
    public static function isEmail($value)
    {
        return (bool) preg_match(self::ISPK_EMAIL_VALID, $value);
    }

Usage Example

예제 #1
0
 /**
  * Generated from @assert ('webmaster') === FALSE.
  */
 public function testIsEmail6()
 {
     $this->assertSame(false, Inspekt::isEmail('webmaster'));
 }