PHPMailer\PHPMailer

PHPMailer::stripTrailingBreakspublic staticWP 1.0

Strip trailing line breaks from a string.

Method of the class: PHPMailer{}

No Hooks.

Returns

String. The text to remove breaks from

Usage

$result = PHPMailer::stripTrailingBreaks( $text );
$text(string) (required)
.

PHPMailer::stripTrailingBreaks() code WP 6.8.1

public static function stripTrailingBreaks($text)
{
    return rtrim($text, "\r\n");
}