会员
周边
捐助
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
910624858
博客园
首页
新随笔
联系
订阅
管理
2021年6月18日
PHP魔术方法11种
摘要: 1、构造函数:__construct(): 构造函数是类中的一个特殊函数,当我们使用new关键字实例化对象时,相当于调用了类的构造函数。 function __construct($name){ $this -> name = $name; } 2、析构函数:__destruct(): ①析构函数在
阅读全文
posted @ 2021-06-18 18:18 王越666
阅读(402)
评论(0)
推荐(0)
编辑
公告