会员
周边
众包
新闻
博问
闪存
赞助商
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
伊人世界
集中精力做一件事,不要松懈,岁月不会重来
博客园
首页
新随笔
联系
订阅
管理
2016年7月11日
__construct()和__initialize()
摘要: 当然还有一种办法就是在父类中调用子类的方法。 class Action{ public function __construct() { if(method_exists($this,'hello')) { $this -> hello(); } echo 'hello Action'; ...
阅读全文
posted @ 2016-07-11 16:39 伊人世界
阅读(130)
评论(0)
推荐(0)
编辑
公告