Lines Matching refs:a
7 $a = array('foo' => 'aaa');
8 // refcount($a) = 1
9 // refcount($a['foo']) = 1
10 $b = $a;
11 // refcount($a) = 2
12 // refcount($a['foo']) = 1
14 // refcount($a) = 1
15 // refcount($a['foo']) = 1
17 var_dump($a, $b);
19 extract($a, EXTR_REFS);
23 var_dump($a, $b);
28 $a = array('foo' => 'aaa');
29 // refcount($a) = 1
30 // refcount($a['foo']) = 1
31 $b = &$a;
32 // refcount($a) = 2
33 // is_ref($a) = true
34 // refcount($a['foo']) = 1
36 // refcount($a) = 2
37 // refcount($a['foo']) = 1
39 var_dump($a, $b);
41 extract($a, EXTR_REFS);
45 var_dump($a, $b);
50 $a = array('foo' => 'aaa');
51 // refcount($a) = 1
52 // refcount($a['foo']) = 1
53 $b = &$a;
54 // refcount($a) = 2
55 // is_ref($a) = true
56 // refcount($a['foo']) = 1
58 // refcount($a) = 1
59 // is_ref($a) = true
60 // refcount($a['foo']) = 1
62 var_dump($a);
64 extract($a, EXTR_REFS);
68 var_dump($a);