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 DataObjectCursor returns an object you access via object syntax (ie. $object->field), vs array syntax ($array['field']) for the ArrayCursor
CloneableInstantiableIterable
- Extends
- Children
- Implements
Countable Iterator Traversable
Methods |
public current() : ?mixed
|
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
|