The "array_clear" Function
#
SyntaxArgument | Type | Description |
---|---|---|
id | array | The index of a previously-created array to modify |
#
DescriptionClears an array's data from memory. This also includes any child arrays the input array may hold. To clear a multidimensional array, input the root array. However, it is also possible to clear just one dimension of an array by including any parent arrays in the input value, e.g. my_array[0][0]
.
Note that this function will not destroy the array itself! To de-reference an array after clearing, simply set the parent variable to 0.