1--TEST-- 2SPL: ArrayObject::getFlags() basic usage 3--FILE-- 4<?php 5$ao = new ArrayObject(new ArrayObject(new stdClass)); 6var_dump($ao->getFlags()); 7 8$ao = new ArrayObject(new ArrayObject(array(1,2,3)), ArrayObject::STD_PROP_LIST); 9var_dump($ao->getFlags()); 10 11$ao = new ArrayObject(new ArrayIterator(new ArrayObject()), ArrayObject::ARRAY_AS_PROPS); 12var_dump($ao->getFlags()); 13 14$ao = new ArrayObject(new ArrayObject(), ArrayObject::STD_PROP_LIST|ArrayObject::ARRAY_AS_PROPS); 15var_dump($ao->getFlags()); 16 17$cao = clone $ao; 18var_dump($cao->getFlags()); 19?> 20--EXPECTF-- 21int(0) 22int(1) 23int(2) 24int(3) 25int(3)