Home > Articles > Mobile Application Development & Programming > HTML5 & Web Standards

  • Print
  • + Share This
Like this article? We recommend

Like this article? We recommend

Find()

The Find() function returns the position of the first occurrence of substring in string. Therefore, the following code

<cfoutput>#Find("o", "Alison Brown")#</cfoutput>

outputs this:

5

The reason is that the first occurrence of the substring o is in the fifth position of the string Alison. Note that the Find() function is case-sensitive.

  • + Share This
  • 🔖 Save To Your Account