len()

Read(624) Label: compute, string,

Description:

Compute the length of a string.

Syntax:

len(s,cs)

Note:

The function computes the length of a string. Calculate length of string's corresponding Unicode if parameter cs is absent.

Parameter:

s

String for which you want to compute the length

cs

Charset; can be omitted

Return value:

An integer

Example:

len("esproc")

6

len(" esproc ")

8

len("esproc",)

6

len("esproc","UTF-8")

6