Strip whitespace (or other characters) from the end of string only (aka right trim)
Available since version 3.0.168.
Usage
// basic usage
$string = $wireTextTools->rtrim(string $str);
// usage with all arguments
$string = $wireTextTools->rtrim(string $str, string $chars = '');
Arguments
Name | Type(s) | Description |
---|---|---|
str | string | |
chars (optional) | string | Omit for default |
Return value
string
WireTextTools methods and properties
API reference based on ProcessWire core version 3.0.236