I have an array that is in a loop. Each time the code loops it is adding on to the array but I really want a new array.
Is there any way to clear the array?
$myArray = array(); //makes it a new empty array OR unset($myArray); // it's gone
Searching can be faster: http://www.phpbuilder.com/board/showthread.php?s=&threadid=10301750&highlight=clear+array