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

Signup for cfbreak to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.

Fork me on GitHub