class Person{
public $name;
public $age;
function _construct($name,$age){
$this->name=$name;
$this->age=$age;
}
function say(){
echo "my name is".$this->name."my age is".$this->age."<br>";
}
}
$person1=new Person("jack","30");
$person1->say();
$person2=new Person("mike","25");
$person2->say();
PHP新手,学习到了面向对象来了,反反复复的检查了以上代码,没发觉有什么问题,可就是不能输出名字与年龄,访问范围好像也没超出啊。输出只显示 my name is my age is 。。求解答,感激不尽,如果有时间,恳请详细解答。