Built-in Functions → length

length() is a string function that returns the length of a string.

Note

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

Signature

length(string exp)

The following table illustrates the length() parameter:

ParameterDescription
string expan expression evaluating to string

Returns

int

Example

Find the length of the string "San Mateo".

length("San Mateo")

In this example, length returns 9.