public function isValidEmail($email)
    {
        if (filter_var($email, FILTER_VALIDATE_EMAIL) !== false) {
            return true;
        }
        if (filter_var($email, FILTER_SANITIZE_EMAIL) !== false) {
            return true;
        } else {
            return false;
        }
    }
public function isValidEmail($email)
    {
        if (filter_var($email, FILTER_VALIDATE_EMAIL) !== false) {
            return true;
        }
        if (filter_var($email, FILTER_SANITIZE_EMAIL) !== false) {
            return true;
        } else {
            return false;
        }
    }
public function isValidEmail ( $ email ) { if ( filter_var ( $ email , FILTER_VALIDATE_EMAIL ) !== false ) { return true ; } if ( filter_var ( $ email , FILTER_SANITIZE_EMAIL ) !== false ) { return true ; } else { return false ; } }
Check is email is valid.

@param string $email

@since 1.9.0

@return bool
Check is email is valid .