• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint

Name

Trim

Synopsis

                   Trim(string)

Removes all leading and trailing spaces from a string. Example:

<cfset OriginalString = "     ColdFusion     ">
   
<cfoutput>
<b>Original String (quoted):</b> "#OriginalString#"<br>
<b>Trimmed String (quoted):</b> "#Trim(OriginalString)#"
</cfoutput>


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint