PHPMailer\PHPMailer

PHPMailer::has8bitCharspublicWP 1.0

Does a string contain any 8-bit chars (in any charset)?

Method of the class: PHPMailer{}

No Hooks.

Returns

true|false.

Usage

$PHPMailer = new PHPMailer();
$PHPMailer->has8bitChars( $text );
$text(string) (required)
.

PHPMailer::has8bitChars() code WP 6.8.1

public function has8bitChars($text)
{
    return (bool) preg_match('/[\x80-\xFF]/', $text);
}