开发者

how recursion uses stack in php

i want to know how recursion uses stack, so that i can know what happens when rec开发者_如何学运维ursion ends. Do script goes to stack and perform operations that were left to execute because of recursion or it continues script execution from next line...


When recursion ends, execution continues at the next line after the first call to the recursive function, as it would with any other function call. A recursive function is a function like any other, except at some point during the function's execution, it calls itself again.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜