PHPMailer\PHPMailer

PHPMailer::stripTrailingWSP()public staticWP 1.0

Remove trailing whitespace from a string.

Method of the class: PHPMailer{}

No Hooks.

Return

String. The text to remove whitespace from

Usage

$result = PHPMailer::stripTrailingWSP( $text );
$text(string) (required)
-

PHPMailer::stripTrailingWSP() code WP 6.5.4

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