/hphp/test/quick/boxed-array-isset.php
PHP | 13 lines | 11 code | 2 blank | 0 comment | 0 complexity | bfab51d995752c097db0d140398921bf 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 main($o, inout $x) {
- $x = $o->prop;
- return isset($x[23]) ? true : false;
- }
- <<__EntryPoint>> function main_entry(): void {
- $o = new stdclass;
- $o->prop = darray[23 => 'hi'];
- $y = null;
- echo main($o, inout $y) ? "true\n" : "false\n";
- }