ArrayContainsNoCase()
Returns the position of the first element in the array whose string value contains the substring passed (not case sensitive), or 0 if no such element is found.
ArrayContainsNoCase( haystack=array, needle=object, substringMatch=boolean );
Returns: Number
Examples
words = [ 'Hello' , 'World' ];
positionOfWorld = ArrayContainsNoCase( words, 'world' );
Echo( positionOfWorld ); // outputs 2
See also
- Arrays
- ArrayContains()
- array.containsNoCase()
- Search Issue Tracker
- Search Lucee Test Cases (good for further, detailed examples)