A Cursor does not read the entire query result into memory at once, but will just read and return one row at a time.
Since it is iterable, it can be used in a foreach statement. The index or key will be an integer starting at 0 for the first record returned.
CloneableInstantiableIterable
- Extends
- Implements
Countable Iterator Traversable
Methods |
public current() : array
|
public next() : void Go to the next record |
public valid() : bool Returns true if not at the end of the input |
Properties |
Methods |
Properties |
private array $current = []
|