I don't know how to better describe it... Let's say I do this:
$s = "SELECT * FROM myTable";
$result = $conn->query($s);
while ($r = $result->fetch_array(MYSQLI_ASSOC)) {
// do something with $r[]...
}
Now, suppose I want to re-scan the result WITHOUT running the query again.
How can I do a "fseek" at the beginning of the $result, so that I can re-read the data in memory?
I understand I could store the data as soon as I read it, but I guess why duplicating it, since it's probably still in memory somewhere?