Removes duplicate values from an array

array:remove_duplicate_values(ARRAY $array) : ARRAY

array:remove_duplicate_values([1,2,1,2])
#=> [ 1, 2 ]

array:remove_duplicate_values([1,2,"1",2.0])
#=> [ 1, 2 ]

array:remove_duplicate_values(["good","bad","ugly","ugly"])
#=> [ "good", "bad", "ugly" ]

array:remove_duplicate_values(["good","Good"])
#=> [ "good", "Good" ]

array:remove_duplicate_values([])
#=> []

array:remove_duplicate_values(["foo"=>"bar","boo"=>"bar", "foo2" => "bar"])
#=> [ "foo" => "bar" ]

Copyright ©2013-2022 SunSed®. All rights reserved.