Skip to content

trim_right

Signature

trim_right(string, string)

Description

Removes the trailing characters found in the passed in string argument.

Examples

trim_right(' foobar ', 'fbr ') == ' fooba'
trim_right(' foobar ', 'fbr') == ' foobar '