I need to remove the duplicate values from a php array, for example:
$array = ('2015', '2015', '2012', '2013', '2014', '2014', '2016')
I wish I had the output:
Array ( [0] => 2012 [1] => 2013 [2] => 2016 )
Everything that is duplicated is removed.
I tried with array_unique, but it eliminates the duplicate and shows how unique, being that I need to delete the two, would it have a shape?