SplObjectStorage::valid
イテレータの現在のエントリが有効かどうかを返す
&reftitle.description;
public boolSplObjectStorage::valid
イテレータの現在のエントリが有効かどうかを返します。
&reftitle.parameters;
&no.function.parameters;
&reftitle.returnvalues;
イテレータのエントリが有効な場合に &true;、それ以外の場合に &false; を返します。
&reftitle.examples;
SplObjectStorage::valid の例
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