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