trim

Purpose

Deletes spaces before the first letter and after the last letter of the string.

Syntax

trim($group)

or

trim(string)

Arguments

Requires a single argument of a string value (named group or constant).

Returned Value

The same string without spaces before and after the string.

Examples

trim(" ABC ") returns "ABC".