PageRenderTime 38ms CodeModel.GetById 14ms RepoModel.GetById 0ms app.codeStats 0ms

/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
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. // 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. }