(PHP 3, PHP 4 )
Chop -- Remove trailing whitespace
Description
Returns the argument string without trailing whitespace,
including newlines.
Example 1. Chop() example |
Note:
chop() is different than the Perl
chop() function, which removes the last
character in the string.
See also trim(), ltrim(),
rtrim(), and chop().