ArrayIterator::key

(no version information, might be only in CVS)

ArrayIterator::key --  Retourne la clé courante du tableau

Description

mixed ArrayIterator::key ( void )

ArrayIterator::key() retourne la clé courante du tableau.

Exemple 1. Exemple avec ArrayIterator::key()

<?php
$array
= array('key' => 'value');

$arrayobject = new ArrayObject($array);
$iterator = $arrayobject->getIterator();

echo
$iterator->key(); //key
?>

Hosting by: Hurra Communications GmbH
Generated: 2007-01-26 18:01:45