PageRenderTime 40ms CodeModel.GetById 15ms RepoModel.GetById 1ms app.codeStats 0ms

/hphp/test/slow/ext_array/array_uintersect_vararg.php

http://github.com/facebook/hiphop-php
PHP | 12 lines | 9 code | 3 blank | 0 comment | 0 complexity | 594d0dd40697231f13236ea64d694c31 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_array_uintersect_vararg() {
  4. $array1 = darray["a" => "green", "b" => "brown", "c" => "blue", 0 => "red"];
  5. $array2 = darray["a" => "GREEN", "B" => "brown", 0 => "yellow", 1 => "red"];
  6. $array3 = darray["a" => "grEEN", 0 => "white"];
  7. print_r(array_uintersect($array1, $array2, "strcasecmp"));
  8. print_r(array_uintersect($array1, $array2, $array3, "strcasecmp"));
  9. }