fork(5) download
  1. <?php
  2. $color = array("a" => "green", "red", "b" => "green", "blue", "red");
  3. $result = array_unique($color);
  4.  
  5. print_r($color);
  6. ?>
Success #stdin #stdout 0.03s 52480KB
stdin
Standard input is empty
stdout
Array
(
    [a] => green
    [0] => red
    [b] => green
    [1] => blue
    [2] => red
)