标签: php static self
在php中,说我有
class People{ public function get_person(){ return self(); } }
这应该是静态的,所以我用
$person = People::get_person();
或成员,所以我首先创建了People的实例,比如
$person = new Person(); $person_two = $person->get_person();