summaryrefslogtreecommitdiff
path: root/tests/lang/011.phpt
blob: e648623845563ec77a7a7cdc0b1a508412ff362f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--TEST--
Testing nested functions
--POST--
--GET--
--FILE--
<?php 
function F()
{
	$a = "Hello ";
	return($a);
}

function G()
{
  static $myvar = 4;
  
  echo "$myvar ";
  echo F();
  echo "$myvar";
}

G();
?>
--EXPECT--
4 Hello 4