mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
19 lines
177 B
PHP
19 lines
177 B
PHP
--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
|