第一种写法
class test{
public $a;
protected $b;
private $c;
public function __construct($a, $b,$c)
{
$this->a = $a;
$this->b = $b;
$this->c = $c;
}
}
第二种写法
class test{
public function __construct($a, $b,$c)
{
$this->a = $a;
$this->b = $b;
$this->c = $c;
}
}