source <?php //静的関数の処理に注目 Function test() { static $count = 0; $count++; echo $count,"<br>"; if ($count < 10) { test(); } $count--; } test() ?>