Why doesn't the following output the data I'm expecting?
class student
{
private $name;
private $id;
public function _construct($name,$id)
{
$this->name = $name;
$this->id = $id;
}
public function getName()
{
return $this->name;
}
public function getID ()
{
return $this->id;
}
}
$mhs = new student("budi","152012102");
echo "name = ".$mhs->getName();
I don't know what's happening, help?