摘要: 1、构造函数:__construct(): 构造函数是类中的一个特殊函数,当我们使用new关键字实例化对象时,相当于调用了类的构造函数。 function __construct($name){ $this -> name = $name; } 2、析构函数:__destruct(): ①析构函数在 阅读全文
posted @ 2021-06-18 18:18 王越666 阅读(402) 评论(0) 推荐(0) 编辑