PHP: ArrayIterator::key - Manual

downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

ArrayIterator::next ArrayIterator::current

Last updated: Sat, 27 Jan 2007

view this page in

# ArrayIterator::key

(no version information, might be only in CVS)

ArrayIterator::key -- Return current array key

## Description

mixed ArrayIterator::key ( void )

This function returns the current array key

Пример 1. ArrayIterator::key() example

`<?php
$array = array('key' => 'value');
$arrayobject = new ArrayObject($array);
$iterator = $arrayobject->getIterator();
echo $iterator->key(); //key
?>`

add a note User Contributed Notes
ArrayIterator::key
There are no user contributed notes for this page.
ArrayIterator::next ArrayIterator::current

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST