Lines Matching refs:function
5 function test_1() {
8 echo "Outer function increments \$v to $v\n";
9 $f = function() use($v) {
10 echo "Inner function reckons \$v is $v\n";
18 function test_2() {
20 $f = function() use($v) {
21 echo "Inner function reckons \$v is $v\n";
24 echo "Outer function increments \$v to $v\n";
31 function test_3() {
34 echo "Outer function concatenates 'b' onto \$v to give $v\n";
35 $f = function() use($v) {
36 echo "Inner function reckons \$v is $v\n";
39 echo "Outer function concatenates 'a' onto \$v to give $v\n";
46 Outer function increments $v to 1
47 Inner function reckons $v is 1
48 Outer function increments $v to 2
49 Inner function reckons $v is 2
50 Outer function increments $v to 1
51 Inner function reckons $v is 0
52 Outer function increments $v to 2
53 Inner function reckons $v is 1
54 Outer function concatenates 'b' onto $v to give b
55 Outer function concatenates 'a' onto $v to give ba
56 Inner function reckons $v is b
57 Outer function concatenates 'b' onto $v to give bab
58 Outer function concatenates 'a' onto $v to give baba
59 Inner function reckons $v is bab