PHP » Strings » chop()

Syntax:
string chop(string s [, string remove_list])
s
The string.
remove_list
Characters to remove.

Alias of rtrim().

chop() is an alias of rtrim() and works just the same.

See Also: