PHP 클래스 Foo3

파일 보기 프로젝트 열기: jyxo/php

공개 메소드들

메소드 설명
__construct ( array $data ) Constructor.
current ( ) : mixed Returns the current item value.
key ( ) : integer Returns the current pointer value.
next ( ) Advances the internal pointer.
rewind ( ) Sets the internal pointer to 0.
valid ( ) : boolean Returns if the current pointer position is valid.

메소드 상세

__construct() 공개 메소드

Constructor.
public __construct ( array $data )
$data array Data

current() 공개 메소드

Returns the current item value.
public current ( ) : mixed
리턴 mixed

key() 공개 메소드

Returns the current pointer value.
public key ( ) : integer
리턴 integer

next() 공개 메소드

Advances the internal pointer.
public next ( )

rewind() 공개 메소드

Sets the internal pointer to 0.
public rewind ( )

valid() 공개 메소드

Returns if the current pointer position is valid.
public valid ( ) : boolean
리턴 boolean