I have a array like below
$array1 = Array
(
[0] => 20225,2017-02-20
[1] => 20225,2017-02-20
[2] => 10027,2017-02-20
[3] => 10027,2017-02-20
[4] => 10021,2017-02-20
[5] => 20205,2017-02-20
[6] => 50003,2017-02-20
[7] => 20225,2017-02-20
[8] => 20205,2017-02-20
[9] => 10021,2017-02-20
[10] => 50003,2017-02-20
[11] => 10027,2017-02-20
[12] => 20225,2017-02-20
[13] => 20225,2017-02-21
[14] => 20225,2017-02-21
)
if the array contain same result more than 2, I want to get one of those values to another array called $array2
.
Please help me to do this