ArrayFindAllNoCase()
These functions searches the array for the specified object and return the positions of all occurrence of this values.
ArrayFindAllNoCase( array=array, value=any );
Returns: Array
| Argument | Description |
|---|---|
|
array
array,
required
|
edit
The array to search in |
|
value
any,
required
|
edit
The value to find |
Examples
editFind first occurrence of string in array
fruitArray = ['apple', 'kiwi', 'banana', 'orange', 'mango', 'kiwi'];
favoriteFruits = arrayFindAll(fruitArray,'kiwi');
dump(favoriteFruits); // [2]
See also
- Arrays
- Collections
- array.findAllNoCase()
- Search Issue Tracker open_in_new
- Search Lucee Test Cases open_in_new (good for further, detailed examples)