Posted by Oli Filth on 12/18/05 12:48
Jørn Dahl-Stamnes said the following on 18/12/2005 09:42:
> Do PHP support recursive calling, like this:
>
> function some_func ($some_arg)
> {
> $count = 0;
> // some code
> while (<some condition>)
> {
> if (<some condition>)
> {
> $count += some_func ($some_arg);
> } else {
> ++$count;
> }
> }
> return $count;
> }
>
Did you not think to just try it out?
--
Oli
[Back to original message]
|