I have tried;
unset ($array)
did not work, how do I empty it?
unset doesn't work? what version of PHP are you using?
workaround: $array=array();