[ create a new paste ] login | about

Link: http://codepad.org/xTiHEupR    [ raw code | output | fork ]

upwhere - PHP, pasted on Feb 9:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
<?php
function final_no()
{
    static $num = 0;
    echo $num;
    $num++;
    echo "\n";
}
 
final_no();
final_no();
final_no();
 
?>


Output:
1
2
3
0
1
2


Create a new paste based on this one


Comments: