summaryrefslogtreecommitdiff
path: root/tests/lang/008.phpt
blob: 6b5ae75d2db4ec1517d22bcc4f47d0f5e8a3fa35 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
--TEST--
Testing recursive function
--FILE--
<?php

function Test()
{
    static $a=1;
    echo "$a ";
    $a++;
    if($a<10): Test(); endif;
}

Test();

?>
--EXPECT--
1 2 3 4 5 6 7 8 9