arrayFind
Description
This function performs a case-sensitive search on an array for a specified object. The function can search for simple objects such as strings or numbers and complex objects such as structures. It does not support COM and CORBA objects.
Categories
Related
Syntax
ArrayFind(array, object)
Attributes
| Attribute | Description | Required | Default |
|---|---|---|---|
| array | Name of an array | ||
| object | Object to search |
Returns
Index
in the array of the first match, or 0, if there is no match.
Example
<cfoutput>
#ArrayFind(MyArray, 2)#
</cfoutput>