21,893
社区成员




class father{
public $a;
function __construct(){
$this->a = 3;
}
}
include 'fatherClass.php';
$son = new son();
$son -> sonFun();
class son extends father{
function sonFun(){
echo 222;
}
}
include 'fatherClass.php';
class son extends father{
function sonFun(){
echo 222;
}
}
$son = new son();
$son -> sonFun();