trim

trim()

Overview

The trim() function takes a string as an argument. It returns the string after removing all leading and trailing spaces from it.

Return Type

  • Text

Syntax

<variable> = <string>.trim();

(OR)

<variable> = trim( <string> );
ParameterDescriptionData type
<variable>Variable which will contain the returned string.TEXT
<string>The string from which the leading and trailing spaces will be removed.TEXT

Examples

mainString = " Welcome to Zoho Creator ";
newText = trim(mainString);           
// returns "Welcome to Zoho Creator"

Share this post : FacebookTwitter

Still can't find what you're looking for?

Write to us: support@zohodeluge.com