rows = array_values($rows); $this->num_rows = count($this->rows); } public function fetch_assoc() { return $this->rows[$this->next++] ?? NULL; } public function fetch_row() { $row = $this->fetch_assoc(); return $row === NULL ? NULL : array_values($row); } public function close() { return TRUE; } }