PHPMailer\PHPMailer

PHPMailer::addressHasUnicodeLocalPartprotectedWP 1.0

Check whether the supplied address uses Unicode in the local part.

Method of the class: PHPMailer{}

No Hooks.

Returns

true|false.

Usage

// protected - for code of main (parent) or child class
$result = $this->addressHasUnicodeLocalPart( $address );
$address(required)
.

PHPMailer::addressHasUnicodeLocalPart() code WP 6.9

protected function addressHasUnicodeLocalPart($address)
{
    return (bool) preg_match('/[\x80-\xFF].*@/', $address);
}