Class DibiResultIterator
External result set iterator.
This can be returned by DibiResult::geĀtIterator() method or using foreach
$result = dibi::query('SELECT * FROM table'); foreach ($result as $row) { print_r($row); } unset($result);
public
|
#
__construct(
DibiResult
$result
)
Parameters$result DibiResult |
public
void
|
#
rewind(
)
Rewinds the iterator to the first element. |
public
mixed
|
#
key(
)
Returns the key of the current element. |
public
mixed
|
#
current(
)
Returns the current element. |
public
void
|
#
next(
)
Moves forward to next element. |
public
bool
|
#
valid(
)
Checks if there is a current element after calls to rewind() or next(). Checks if there is a current element after calls to rewind() or next(). Implementation of |
public
int
|
#
count(
)
Required by the Countable interface. |