try (void)array (haven't a clue the result of this practice)
or simply
delete []array;
to delete, thereafter you could initialize and set new initiatives again.
or, get the length of the array, and use for loop and set to 0
oh, you're using php
mm, i think i've hassled myself quite...