mirror of
https://github.com/php/php-src.git
synced 2024-11-27 11:53:33 +08:00
24 lines
215 B
PHP
24 lines
215 B
PHP
--TEST--
|
|
Testing nested functions
|
|
--FILE--
|
|
<?php
|
|
function F()
|
|
{
|
|
$a = "Hello ";
|
|
return($a);
|
|
}
|
|
|
|
function G()
|
|
{
|
|
static $myvar = 4;
|
|
|
|
echo "$myvar ";
|
|
echo F();
|
|
echo "$myvar";
|
|
}
|
|
|
|
G();
|
|
?>
|
|
--EXPECT--
|
|
4 Hello 4
|