Description

This function performs case-insensitive search in an array for a specified object. The function searches simple objects such as strings and numbers or complex objects such as structures. String searches are case-insensitive.

Returns

True, if the specified object exists in the array.

Category

Array functions

History

New in Adobe ColdFusion (2016 release)

Syntax

boolean ArrayContainsNoCase(List v, Object obj)

See also

Other closure functions.

Parameters

Parameter

Description

v

Name of the array.

obj Object to search for.

Example

<cfscript>
writeOutput(ArrayContainsNoCase(["STRING","STRING"], "string"));
</cfscript>

This work is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  Twitter™ and Facebook posts are not covered under the terms of Creative Commons.

Legal Notices   |   Online Privacy Policy