PHPMailer\PHPMailer

PHPMailer::has8bitChars()publicWP 1.0

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

Метод класса: PHPMailer{}

Хуков нет.

Возвращает

true|false.

Использование

$PHPMailer = new PHPMailer();
$PHPMailer->has8bitChars( $text );
$text(строка) (обязательный)
-

Код PHPMailer::has8bitChars() WP 6.5.2

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