PageRenderTime 81ms CodeModel.GetById 40ms app.highlight 2ms RepoModel.GetById 38ms 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
 1<?hh
 2
 3
 4<<__EntryPoint>>
 5function main_array_uintersect_vararg() {
 6  $array1 = darray["a" => "green", "b" => "brown", "c" => "blue", 0 => "red"];
 7  $array2 = darray["a" => "GREEN", "B" => "brown", 0 => "yellow", 1 => "red"];
 8  $array3 = darray["a" => "grEEN", 0 => "white"];
 9
10print_r(array_uintersect($array1, $array2, "strcasecmp"));
11print_r(array_uintersect($array1, $array2, $array3, "strcasecmp"));
12}