summaryrefslogtreecommitdiff
path: root/tests/lang/008.phpt
blob: 145214cbb49f23defa7d5fc69579e91b04ce57a9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
--TEST--
Testing recursive function
--POST--
--GET--
--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