name = $name; $this->surname = $surname; $this->student_id = $student_id; $this->results = $results; $this->disability_notes = $disability_notes; } function getResults() { return $this->results; } function getDisabilityNotes() { return $this->disability_notes; } function printStudentData() { $results_data = ""; while(list($key, $val) = each ($this->results)) { $results_data .= "$key:$val
"; } ksort($this->results); $dis = << First Name Second Name Student ID Best Result {$this->name} {$this->surname} {$this->student_id} $results_data EOF; echo $dis; } } ?>