未知题型

$a=new A('刘');
$a->test();
class   A{
   protected $name;
  public function _construct($iname)
  {
      $this->name=$iname;
  
  }
  public function test ()
  {
  
    echo $this—>name;
  
  }
}
//如以上代码,为什么不能正常显示出名字?
【参考答案】

echo $this—>name;改成 echo $this->name;大小...

(↓↓↓ 点击下方‘点击查看答案’看完整答案 ↓↓↓)