The chop Function
The chop function removes whitespace from the end
of a string. It is an alias of the function rtrim.
Syntax
chop(string $string, string $characters = " \t\n\r\0\x0B"): string
The chop function removes whitespace from the end
of a string. It is an alias of the function rtrim.
chop(string $string, string $characters = " \t\n\r\0\x0B"): string