Parameter
Last updated on
Oct 27, 2023
Note:
As of ColdFusion (2021 release), CORBA has been removed. You can no longer use CORBA-related features, functions, and tags.
Description
Deletes the first element in an array that matches the value of object . The search is case-insensitive.
The function does not support COM and CORBA objects.
Returns
Yes, When an element of the array is successfully deleted.
Category
History
New in Adobe ColdFusion (2016 release)
Syntax
ArrayDeleteNoCase(array, object)
Parameters
|
Req/Opt |
Description |
array |
Required |
Name of the array. |
object |
Required |
Object to search for. |
Example
<cfscript> myArray=ArrayNew(1); myArray=["Analyze","Analyse","Analysis","analyse","analysis","analyze"]; WriteOutput(ArrayDeleteNoCase(myArray,"analyze")); // Returns true because object matches an element in the array WriteOutput(SerializeJSON(myArray));// Returns arrray after deleting the first element in the array </cfscript>
Output
["Analyse","Analysis","analyse","analysis","analyze"]