有大佬吗,怎么让他有输出值
<?php
header("content-type:text/html;charset=utf-8");
class person{
public $name;
public $age;
private $sex;
public function __construct($name='1',$age='12',$sex='33'){
echo $this->sex;
}
}
$person1 = new person();
<?php
header("content-type:text/html;charset=utf-8");
class person{
public $name;
public $age;
private $sex;
public function __construct($name='1',$age='12',$sex='33'){
echo $this->sex;
}
}
$person1 = new person();
2019-07-14
举报