Description
Searches an array for the first position of a specified object and deletes it. The function searches for simple objects such as strings and numbers or for complex objects such as structures. Simple object string searches are case-sensitive. This function does not support searches for COM and CORBA objects.
Returns
Yes, on successful deletion of the array element.
Category
Function syntax
ArrayDelete(array,object) |
See Also
ArrayDeleteAt, ArrayClear
Parameters
Parameter |
Description |
---|---|
array |
Array to search in. |
object |
Object to search for. |
Example
<cfscript> array = ["string","string"]; writeOutput(arrayDelete(array, "string")); writeDump(array); </cfscript> |