会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Arvim
The wind can blow away the spring, but it couldn't go spring, the seeds of failure can be dim yesterday's efforts, but could not prevent the arrival of the brilliant tomorrow.
博客园
首页
新随笔
联系
订阅
管理
2015年12月25日
PHP5.4 Trait 使用
摘要: Trait 是个什么鬼 PHP Trait 是一个抽象类, 不能实例化, 简单理解就是将trait的代码复制, 粘贴到你使用trait的类中. 和接口对比, 还是有区别的 有这么个问题. <?php class DbReader extends Mysqli { } class FileReade...
阅读全文
posted @ 2015-12-25 15:36 arvim
阅读(286)
评论(0)
推荐(0)
编辑
公告