Name

Len

Synopsis

                  
                  Len(string)

Returns the length of a string as a number. If string is binary, Len( ) returns the length of the binary buffer. Example:

<cfset MyString="This is my string.">
   
<cfoutput>
String:  #MyString#<br>
MyString is #Len(MyString)# characters long.
</cfoutput>

Get Programming ColdFusion MX, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.