if I unset an array, would its elements be garbage collected or freed up assuming they are not referenced in anywhere else?
what if I simply do $array =new array();
Check-out php < 5.3 garbage collection, do array values need to be set null or does setting the array = null orphan all its elements?, maybe that will help answer your question.