SplObjectStorage::valid Returns if the current iterator entry is valid &reftitle.description; public boolSplObjectStorage::valid Returns if the current iterator entry is valid. &reftitle.parameters; &no.function.parameters; &reftitle.returnvalues; Returns &true; if the iterator entry is valid, &false; otherwise. &reftitle.examples; <function>SplObjectStorage::valid</function> example attach($o1, "d1"); $s->attach($o2, "d2"); $s->rewind(); while($s->valid()) { echo $s->key()."\n"; $s->next(); } ?> ]]> &example.outputs.similar; &reftitle.seealso; SplObjectStorage::current SplObjectStorage::getInfo