/hphp/test/slow/collection_classes/frozen_vector/array_key_exists.php

http://github.com/facebook/hiphop-php · PHP · 15 lines · 10 code · 4 blank · 1 comment · 0 complexity · 3bba23e6ab1458fe628928be539f7b3b MD5 · raw file

  1. <?hh
  2. // Test array_key_exists() for ImmVector.
  3. function main() {
  4. $fv = ImmVector {1, 2, 3};
  5. var_dump(array_key_exists(0, $fv));
  6. var_dump(array_key_exists(3, $fv));
  7. }
  8. <<__EntryPoint>>
  9. function main_array_key_exists() {
  10. main();
  11. }