PHPMailer\PHPMailer
PHPMailer::hasLineLongerThanMax()
Detect if a string contains a line longer than the maximum line length allowed by RFC 2822 section 2.1.1.
Метод класса: PHPMailer{}
Хуков нет.
Возвращает
true|false
.
Использование
$result = PHPMailer::hasLineLongerThanMax( $str );
- $str(строка) (обязательный)
- -
Код PHPMailer::hasLineLongerThanMax() PHPMailer::hasLineLongerThanMax WP 6.5.2
public static function hasLineLongerThanMax($str) { return (bool) preg_match('/^(.{' . (self::MAX_LINE_LENGTH + strlen(static::$LE)) . ',})/m', $str); }