PHPMailer\PHPMailer

PHPMailer::has8bitChars()publicWP 1.0

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

Method of the class: PHPMailer{}

No Hooks.

Return

true|false.

Usage

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

PHPMailer::has8bitChars() code WP 6.5.4

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