cfdocs

stringLen

Get the length of a string.

stringLen(string)
returns numeric

Member Function Syntax

string.len()

Argument Reference

Name Type Required Default Description
string string Yes    

StringLen() example

Output the length of the string “Hello World”.

StringLen("Hello World")

Expected Result: 11

StringLen() using as a member function

Output the length of the string “Hello World”.

"Hello World".len()

Expected Result: 11