WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::has8bitChars() public WP 1.0

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

{} It's a method of the class: PHPMailer{}

No Hooks.

Return

true|false.

Usage

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

Code of PHPMailer::has8bitChars() WP 5.7.2

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