欢迎各位兄弟 发布技术文章
这里的技术是共享的
class User {public $name;public $age;
public function __construct($name='', $age=''){$this->name = $name;$this->age = $age;}
public function isEmpty(){return empty($this->name) && empty($this->age);}
}来自 http://ask.5lulu.com/question/etn6g5pytp85ca.html