From php.net http://www.php.net/manual/en/language.variables.scope.php
Example #6, shows a simple recursive function that counts to 10. My questions is what is the point of DEcrementing the $count variable at the end? Thanks for looking.
<?php
function test()
{
static $count = 0;
$count++;
echo $count;
if ($count < 10) {
test();
}
$count--;
}
?>