remove duplicate elements from array in php without using function