RecordSet::rewind - jcobban/Genealogy GitHub Wiki
$recordSet->rewind()
Up: class RecordSet
This is part of the internal implementation of support for iteration using the foreach statement through implementation of the interface Iterator. It is called by foreach to reposition to the first member of the set. Normally foreach is the clearest and most compact way to look at the members of the set. However occasionally all that an application wants is to look at is the first member of the set. As a side effect of repositioning to the beginning of the set this internal method returns the first record in the set.
$first = $recordSet->rewind();
If the RecordSet is empty, or too large to load into memory, this method returns false.
It is the equivalent of calling reset($array).
Next: $recordSet->next()