Finds the first occurrence of a substring in a string, from a specified start position. If substring is not in string, returns zero. The search is case-sensitive.
find(substring, string [, start])
→ returns numeric
1
Returns the index of apple in the string.
find("apple", "An apple a day keeps the doctor away.")
Expected Result: 4
Signup for cfbreak
to stay updated on the latest news from the ColdFusion / CFML community. One email, every friday.