ArrayDeleteNoCase()

Deletes specified object from given array, in case of a string the case of the string does not matter.

ArrayDeleteNoCase( array=array, value=object, scope=string );

Returns: Boolean

Argument Description
array
array, required

The array to delete from

value
object, required

The value to delete

scope
string, optional

one: replaces the first occurrence (default) all: replaces all occurrences

Examples

arr=['lucee','SUSI'];
	writeDump(var=arr,label="Before");
	arrayDeleteNoCase(arr, 'suSi');
	writeDump(var=arr,label="After");//lucee
	arrNew=['a','Ab','c','A','a'];
	writeDump(var=arrNew,label="Before");
	arrayDeleteNoCase(arrNew, 'a',"all");
	writeDump(var=arrNew,label="After");

See also