Getting First unix number in array php : i have array [1,2,1,2,3,4,5,]
and i want make function in php that will return first Unix number 
in those array is 3
or how we can remove all double array and will return [3,4,5]