Lines Matching refs:a
7 $a = array("original.1","original.2","original.3");
8 foreach ($a as $k=>$v) {
9 $a[$k]="changed.$k";
12 var_dump($a);
15 $a = array("original.1","original.2","original.3");
16 foreach ($a as $k=>$v) {
19 var_dump($a);
23 $a = array("original.1","original.2","original.3");
24 foreach ($a as $k=>&$v) {
27 var_dump($a);
30 $a = array("original.1","original.2","original.3");
32 foreach ($a as $v) {
33 array_push($a, "new.$counter");
41 var_dump($a);
44 $a = array("original.1","original.2","original.3");
46 foreach ($a as &$v) {
47 array_push($a, "new.$counter");
55 var_dump($a);
58 $a = array("original.1","original.2","original.3");
59 foreach ($a as $v) {
60 array_pop($a);
63 var_dump($a);
66 $a = array("original.1","original.2","original.3");
67 foreach ($a as &$v) {
68 array_pop($a);
71 var_dump($a);