(PHP3 , PHP4 )
string chop (string str)
string chop
Returns the argument string without trailing whitespace, including newlines.
Example 1. Chop() example
$trimmed = chop ($line);
See also trim().