Deletes the first element in an array that matches the value of
The function does not support COM and CORBA objects.
ArrayDeleteNoCase(array, object)
Parameter | Req/Opt | Description |
array | Required | Name of the array. |
object | Required | Object to search for. |
<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>