PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ArrayObject::append> <ArrayIterator::valid
Last updated: Fri, 26 Sep 2008

view this page in

The ArrayObject class

Введение

...

Class synopsis

ArrayObject
ArrayObject implements IteratorAggregate , Traversable , ArrayAccess , Countable {
/* Methods */
void ArrayObject::append ( mixed $newval )
int ArrayObject::count ( void )
ArrayIterator ArrayObject::getIterator ( void )
mixed ArrayObject::offsetGet ( mixed $index )
void ArrayObject::offsetSet ( mixed $index , mixed $newval )
}

Содержание



add a note add a note User Contributed Notes
ArrayObject
dave at csixty4 dot com
05-Sep-2008 11:28
If you want to use array functions on an ArrayObject, why not use iterator_to_array() to get a standard PHP array?  Do your operations on that array, then instantiate a new ArrayObject, passing it the array.

This might be a little slow on large ArrayObjects, but you'd have access to all of the array functions.
Anonymous
10-Aug-2008 09:17
Too bad the Array functions [1] are not available on this object… otherwise I would be using it all the time.

[1] http://nl.php.net/manual/en/ref.array.php

ArrayObject::append> <ArrayIterator::valid
Last updated: Fri, 26 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites