Name
rtrim — remove trailing whitespace
Synopsis
string rtrim(
str)
;
string str
;
Description
Returns str with the trailing
whitespace removed. Whitespace is defined as those characters whose ASCII
character codes are less than or equal to 0x20 (the space character).
Example 47. rtrim
Example
string trimmed = rtrim(" Hello! "); // = " Hello!"