/hphp/test/slow/array_functions/528.php

http://github.com/facebook/hiphop-php · PHP · 9 lines · 7 code · 2 blank · 0 comment · 0 complexity · ea129b0befaafa384a84a9c1574fd5d1 MD5 · raw file

  1. <?hh
  2. <<__EntryPoint>>
  3. function main_528() {
  4. $input = darray["a" => "green", 0 => "red", "b" => "green", 1 => "blue", 2 => "red"];
  5. $result = array_unique($input);
  6. print_r($result);
  7. }