Lucee Function Reference
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.
Beispiel
arraycontainsnocase(array haystack,object needle,[boolean substringMatch]):number
Kategorie
array
Argumente
Die Argumente für diese Funktion sind fest vorgegeben. Ausser den nachfolgenden Argumenten dürfen keine weiteren verwendet werden.
Name | Typ | Required | Default Value | Beschreibung |
---|---|---|---|---|
haystack | array | Yes | The array in which to search for the substring | |
needle | object | Yes | The substring to search for (not case sensitive) | |
substringMatch | boolean | No | false | If set to true then if a then a substring match will also return true. This will only work with simple values. Passing true with complex objects will throw an exception. |