WordPress at a glance
function is not described

PHPMailer\PHPMailer

PHPMailer::hasLineLongerThanMax() public WP 1.0

Detect if a string contains a line longer than the maximum line length allowed by RFC 2822 section 2.1.1.

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

No Hooks.

Return

true|false.

Usage

$result = PHPMailer::hasLineLongerThanMax( $str );
$str(string) (required)
-

Code of PHPMailer::hasLineLongerThanMax() WP 5.7.2

<?php
public static function hasLineLongerThanMax($str)
{
    return (bool) preg_match('/^(.{' . (self::MAX_LINE_LENGTH + strlen(static::$LE)) . ',})/m', $str);
}