(PHP3 , PHP4 )
string rtrim
Returns the argument string without trailing whitespace, including newlines. This is an alias for chop().
Example 1. rtrim() example
$trimmed = rtrim ($line);
See also trim(), ltrim().