Iterator::current
Iterator::next
Iterator
PHP Manual

# Iterator::key

(PHP 5 >= 5.1.0)

Iterator::key — Return the key of the current element

### 설명

abstract public scalar Iterator::key ( void )

Returns the key of the current element.

### 인수

이 함수는 인수가 없습니다.

### 반환값

Returns scalar on success, integer 0 on failure.

### 오류/예외

Issues `E_WARNING` on failure.

Iterator::current
Iterator::next
Iterator
PHP Manual