Predefined function reference

string_trim

A reference entry for string_trim

Predefined function · string

string_trim (string text[, string search]) ⇒ string

Trims a string, text, at the start and the end, removing all instances of a character. If no search parameter is provided, the function simply takes the space character and trims the string of it.

Alternative function names: str_trim