ArrayIterator
PHP Manual

ArrayIterator::current

(PHP 5 >= 5.0.0)

ArrayIterator::currentクスコ゚、ホヌロホィ・ネ・熙ヨ、ケ

タ篶タ

mixed ArrayIterator::current ( void )

クスコ゚、ホヌロホィ・ネ・熙霹タ、キ、゙、ケ。」

・ム・鬣癸シ・ソ

、ウ、ホエリソヒ、マ・ム・鬣癸シ・ソ、マ、「、熙゙、サ、」

ハヨ、�ヘ

クスコ゚、ホヌロホィ・ネ・熙ヨ、キ、゙、ケ。」

ホ�

ホ�1 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


ArrayIterator
PHP Manual