0) { $firstRow = true; foreach($d as $row) { $this->rows[] = array_values($row->toArray()); if($firstRow) { $this->columns = array_keys($row->toArray()); $firstRow = false; } } } } } ?>