ArrayIterator::current
ArrayIterator::current — 現在の配列エントリを返す
説明
mixed ArrayIterator::current ( void )この関数は現在の配列エントリを返します。
例 2159. ArrayIterator::current() の例
<?php
$array = array('1' => 'one',
'2' => 'two',
'3' => 'three');
$arrayobject = new ArrayObject($array);
for($iterator = $arrayobject->getIterator();
$iterator->valid();
$iterator->next()) {
echo $iterator->key() . ' => ' . $iterator->current() . "\n";
}
?>
上の例の出力は以下となります。1 => one 2 => two 3 => three
Weblioに収録されているすべての辞書からArrayIterator::currentを検索する場合は、下記のリンクをクリックしてください。

- ArrayIterator::currentのページへのリンク