类 / 构造函数
默认构造函数
不带任何参数
带参数
带默认参数值
调用父构造函数
调用自身构造函数
替换父构造函数
<?php
class
Man
{
public
$name = "";
}
$man =
new
Man
();
print_r
($man);