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

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.

InformIT Promotional Mailings & Special Offers

I would like to receive exclusive offers and hear about products from InformIT and its family of brands. I can unsubscribe at any time.