/hphp/test/slow/collection_classes/frozen_vector/array_key_exists.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
- <?hh
- // Test array_key_exists() for ImmVector.
- function main() {
- $fv = ImmVector {1, 2, 3};
- var_dump(array_key_exists(0, $fv));
- var_dump(array_key_exists(3, $fv));
- }
- <<__EntryPoint>>
- function main_array_key_exists() {
- main();
- }