PageRenderTime 44ms CodeModel.GetById 20ms RepoModel.GetById 0ms app.codeStats 0ms

/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
Possible License(s): LGPL-2.1, BSD-2-Clause, BSD-3-Clause, MPL-2.0-no-copyleft-exception, MIT, LGPL-2.0, Apache-2.0
  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. }