Studyon Minte9.com
ZCE 5.3




SPL



ArrayObject - This class allows arrays to work as objects

<?php $array= array('a','b','c'); $obj = new ArrayObject($array); $obj->append('d'); echo $obj->count(); // Output: 4 $iterator = $obj->getIterator(); while($iterator->valid()) { echo $iterator->current(); $iterator->next(); } // Output: abcd