xref: /PHP-5.3/tests/lang/011.phpt (revision d94136fc)
1--TEST--
2Testing nested functions
3--FILE--
4<?php
5function F()
6{
7	$a = "Hello ";
8	return($a);
9}
10
11function G()
12{
13  static $myvar = 4;
14
15  echo "$myvar ";
16  echo F();
17  echo "$myvar";
18}
19
20G();
21?>
22--EXPECT--
234 Hello 4
24