Skip to content

trim_space

Signature

trim_space(string)

Description

Trims leading and trailing spaces from the string passed in argument.

Examples

trim_space('    foobar  ') == 'foobar'