为什么下面没有输出我期望的数据? p>
class student
{
private $ name;
private $ id;
public function _construct($ name,$ id)
{
$ this-> name = $ name;
$ this-> id = $ id;
公共函数getName()
{
返回$ this-> name;
}
公共函数getID()
{
返回$ this-> id;
}
}
$ mhs =新学生(“budi”,“152012102”);
echo“name =”。$ mhs-> getName();
code> pre >
我不知道发生了什么事,请帮忙吗? p>
div>