       :

<?php
function funct()
{
    static $q=0;
    $q++;
    print $q;
}
for($q=0;$q++<10;)
funct()
?>   

           ,    .

     , 
        .