PHPMailer\PHPMailer
PHPMailer::stripTrailingBreaks
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() PHPMailer::stripTrailingBreaks code WP 7.0
public static function stripTrailingBreaks($text)
{
return rtrim($text, "\r\n");
}