没啥用,但是偶尔用,下面三种是定义空对象的方法

$obj1 = new \stdClass; 
$obj2 = new class{};
$obj3 = (object)[];

加入极梦创业军