/hphp/test/slow/array_object/print_r.php
http://github.com/facebook/hiphop-php · PHP · 13 lines · 10 code · 3 blank · 0 comment · 0 complexity · 0f3f6a886fd829c1b45cb4ee68288761 MD5 · raw file
- <?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);