fork(1) download
  1. <?php
  2.  
  3. $dupArr = array("A" => "foo",
  4. "B" => "baz",
  5. "C" => "bar",
  6. "D" => "foo");
  7. $unique = array_unique($dupArr);
  8.  
  9. print_r($unique);
Success #stdin #stdout 0.01s 24400KB
stdin
Standard input is empty
stdout
Array
(
    [A] => foo
    [B] => baz
    [C] => bar
)