一道非常简单的面试题,却发现很多人在这里栽了跟斗

浏览:4046 发布日期:2016/04/13 分类:求助交流 关键字: 面试 面试题 新手失误
一道非常简单的面试题,却发现很多人在这里栽了跟斗,还包括很多老手。class Index{
public function index(){
  echo 'this is Index/index';
}
public function add(){
  echo 'this is Index/add';
}
}
$i = new Index();
$i->add();
请问,最后输出的结果是?
ps:最后答案是:
this is Index/indexthis is Index/add
最佳答案
评论( 相关
后面还有条评论,点击查看>>