Home  >  Article  >  Backend Development  >  突然发现类中好象不能写递归函数

突然发现类中好象不能写递归函数

WBOY
WBOYOriginal
2016-06-23 13:34:49840browse

做了一个试验,
竟然不能使用,百思不得其解


回复讨论(解决方案)

太粗粗心了!第42行少了 $this->

42行   $this->testt($n-1);

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn