Free cookie consent management tool by TermsFeed trim() Function
trim() Function

Function

trim( text )

Removes all unnecessary spaces from the text. Only single spaces between words are considered necessary.

Parameters

Keyword Type Description

text

Text

The string of text from which unnecessary spaces are to be removed.

Returns

Text

Examples

trim(" this text needs trimming ") returns this text needs trimming

Open in Github Built: Fri, Nov 10, 2023 (03:42:48 PM)

trim() Function

FEEDBACK