Array clear function


clear array.

clear ()

Removes all element from the array.

Parameters:

This function has no parameters.

Returns:

This function has no return value.

Example

array.add("one")

array.add("two")

array.add("three")

// array now contains thre items. array[0] is "one",

// array[1] is "two", and array [3] is "three".

array.clear()

// array now has no elements in it.

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*