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

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

WBOY
Release: 2016-06-23 13:34:49
Original
864 people have browsed it

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


回复讨论(解决方案)

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

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

source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template