SplObjectStorage::next Move to the next entry &reftitle.description; public voidSplObjectStorage::next Moves the iterator to the next object in the storage. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; &return.void; &reftitle.examples; <function>SplObjectStorage::next</function> example attach($o1, "d1"); $s->attach($o2, "d2"); $s->rewind(); while($s->valid()) { $index = $s->key(); $object = $s->current(); // similar to current($s) var_dump($index); var_dump($object); $s->next(); } ?> ]]> &example.outputs.similar; &reftitle.seealso; SPLObjectStorage::rewind