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.

Returns

Index in the array of the first match, or 0, if there is no match.

Function syntax

ArrayFind(array, object)

Parameters

Parameter

Description

array

Name of an array

object

Object to search

Example

<cfoutput> 
    #ArrayFind(MyArray, 2)# 
</cfoutput>