I have a file that includes a list of classes and a list of functions
include 'Classes.php';
include 'Functions.php';
when I run the code it come up with the error
Fatal error: Cannot declare class PartTimeTeacher, because the name is already in use in /Applications/XAMPP/xamppfiles/htdocs/PHPfolder/Classes.php on line 157
this is the code it is referring to
class PartTimeTeacher extends Teacher {
Private $Hours;
public function setHours($h){
$this->Hours = $h;
}
public function getHours(){
return $this->Hours;
}
}
Line 157 is the last bracket, I have tried changing the 'include' to 'Require_once()' but it didn't make a difference so will not run, I don't know what to do to get it to work?