PHPMailer\PHPMailer

PHPMailer::stripTrailingBreaks │ public static │ WP 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 7.1.2

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