/hphp/test/quick/array-compact.php
PHP | 12 lines | 12 code | 0 blank | 0 comment | 0 complexity | 92e2a0529497c9b969f4b760d0bc9757 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
- function f($a) {
- $a["four"] = 4;
- return $a;
- }
- <<__EntryPoint>> function main(): void {
- $a = darray[1=>1, 2=>2, 3=>3];
- unset($a[1]);
- unset($a[2]);
- unset($a[3]);
- var_dump(f($a));
- }