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;
}
--
Jørn Dahl-Stamnes
function some_func ($some_arg)
{
$count = 0;
// some code
while (<some condition>)
{
if (<some condition>)
{
$count += some_func ($some_arg);
} else {
++$count;
}
}
return $count;
}
--
Jørn Dahl-Stamnes
Comment