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; ?> 个人理解

相关文章:

  • 2021-06-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-27
  • 2021-05-15
  • 2022-12-23
  • 2021-05-24
猜你喜欢
  • 2022-12-23
  • 2021-08-03
  • 2021-05-30
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
相关资源
相似解决方案