/hphp/test/slow/array_object/print_r.php
PHP | 13 lines | 10 code | 3 blank | 0 comment | 0 complexity | 0f3f6a886fd829c1b45cb4ee68288761 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
- <?php
- function test($flag = 0) {
- $ao = new ArrayObject([], $flag);
- $ao['foo'] = 'bar';
- $ao->bar = 'baz';
- print_r($ao);
- }
- test();
- test(ArrayObject::STD_PROP_LIST);
- test(ArrayObject::ARRAY_AS_PROPS);