PHP Class Foo3

Show file Open project: jyxo/php

Public Methods

Method Description
__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.

Method Details

__construct() public method

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

current() public method

Returns the current item value.
public current ( ) : mixed
return mixed

key() public method

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

next() public method

Advances the internal pointer.
public next ( )

rewind() public method

Sets the internal pointer to 0.
public rewind ( )

valid() public method

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