note 86823 added to class.arrayobject

From: Date: Wed, 05 Nov 2008 09:09:09 +0000
Subject: note 86823 added to class.arrayobject
Groups: php.notes 
Request: Send a blank email to php-notes+get-146154@lists.php.net to get a copy of this message
Simple example of usage : <?php $array = array('Buck','Jerry','Tomas'); $arrayObject = new ArrayObject($array); // Add new element $arrayObject->append('Tweety'); // We are getting the iterator of the object $iterator = $arrayObject->getIterator(); // Simple while loop while ($iterator->valid()) { echo $iterator->current() . "\n"; $iterator->next(); } /* Outputs */ Buck Jerry Tomas Tweety ?> Note that not all the public methods of this class are documented here . ( Which includes a lot sorting methods ) . Regards ---- Server IP: 128.39.198.38 Probable Submitter: 193.142.0.1 ---- Manual Page -- http://www.php.net/manual/en/class.arrayobject.php Edit -- https://master.php.net/note/edit/86823 Del: integrated -- https://master.php.net/note/delete/86823/integrated Del: useless -- https://master.php.net/note/delete/86823/useless Del: bad code -- https://master.php.net/note/delete/86823/bad+code Del: spam -- https://master.php.net/note/delete/86823/spam Del: non-english -- https://master.php.net/note/delete/86823/non-english Del: in docs -- https://master.php.net/note/delete/86823/in+docs Del: other reasons-- https://master.php.net/note/delete/86823 Reject -- https://master.php.net/note/reject/86823 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#146154) next »