Lines Matching refs:v
6 static $v = 0;
7 ++$v;
8 echo "Outer function increments \$v to $v\n";
9 $f = function() use($v) {
10 echo "Inner function reckons \$v is $v\n";
19 static $v = 0;
20 $f = function() use($v) {
21 echo "Inner function reckons \$v is $v\n";
23 ++$v;
24 echo "Outer function increments \$v to $v\n";
32 static $v = "";
33 $v .= 'b';
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";
38 $v .= 'a';
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