length

Returns the length of a string.

Example

Find the length of the string “San Mateo”.

length("San Mateo")

In this example, length returns 9.

Syntax

length(string expr str)

Parameters

  • str : expression evaluating to string

Returns

int

Description

length returns the length of its string argument, including spaces.