mirror of
https://github.com/php/php-src.git
synced 2024-12-03 06:44:07 +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
|