PHP 连贯操作

method_x(substr($method,6)); } } function method1() { $this->i+=1; return $this; } function method2() { $this->i+=2; return $this; } function method_x() { $args=func_get_arg(0); $this->i+=$args; return $this; } } $test=new myoop(); echo $test->method1()->method2()->method88881()->i; ?> 个人理解

posted on 2011-08-26 16:56  cn三少<script></script>  阅读(244)  评论(0编辑  收藏  举报

导航