ArrayFindNoCase()
Performs a case-insensitive search in the array for the specified object. Returns the index of the object found, or 0 if the object was not found.
ArrayFindNoCase( array=array, value=any );
Returns: Number
| Argument | Description |
|---|---|
|
array
array,
required
|
edit
The array to search in |
|
value
any,
required
|
edit
The value to find Alias: object |
Examples
editarrVariable = [ "Water", "Sky", 2, "Air" ];
WriteDump( ArrayFindNoCase( arrVariable, 5 ) ); // Outputs 0
WriteDump( ArrayFindNoCase( arrVariable, "air" ) ); // Outputs 4
WriteDump( ArrayFindNoCase( arrVariable, 2 ) ); // Outputs 3
See also
- Arrays
- array.findNoCase()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)