十年网站开发经验 + 多家企业客户 + 靠谱的建站团队
量身定制 + 运营维护+专业推广+无忧售后,网站问题一站解决
_age = $age; } public function setName($name){ $this->_name = $name; } public function setProv($prov){ $this->_prov = $prov; } public function getMan(){ echo $this->_age.$this->_name.$this->prov; } } class Building{ protected $man = ''; public function __construct(){ $this->man = new UserInfo(); } public function buildman($array){ $this->man->setAge($array['age'); $this->man->setAge($array['name'); $this->man->setAge($array['prov'); } public function getman(){ $this->man->getMan(); } }