stringLen

Get the length of a string.

stringLen(string) → returns numeric

Member Function Syntax

string.len()

This function requires Lucee.  Not supported on Adobe ColdFusion, etc.

Argument Reference

string string
Required

Examples
Sample code invoking the stringLen function

Output the length of the string "Hello World".

StringLen("Hello World")

Expected Result: 11

Output the length of the string "Hello World".

"Hello World".len()

Expected Result: 11


Fork me on GitHub