results);
reset($this->results);
return current($this->results);
}
function printStudentData()
{
$best = $this->getBestMark();
$results_data = "";
while(list($key, $val) = each ($this->results))
{
$results_data .= "$key:$val
";
}
$results_data .= "The best mark for the student is $best.";
ksort($this->results);
$dis = <<
First Name |
Second Name |
Student ID |
Best Result |
{$this->name} |
{$this->surname} |
{$this->student_id} |
{$results_data} |
EOF;
echo $dis;
}
}
?>