Lines Matching refs:array
2 Directly modifying a REFERENCED array when foreach'ing over it while using &$value syntax.
10 //Build array:
18 echo "--> State of referenced array before loop:\n";
32 echo "--> State of array after loop:\n";
37 echo "\nPopping elements off end of a referenced array, using &\$value";
44 echo "\n\n\nShift elements off start of a referenced array, using &\$value";
51 echo "\n\n\nRemove current element of a referenced array, using &\$value";
58 echo "\n\n\nAdding elements to the end of a referenced array, using &\$value";
65 echo "\n\n\nAdding elements to the start of a referenced array, using &\$value";
74 Popping elements off end of a referenced array, using &$value
76 --> State of referenced array before loop:
77 array(1) {
83 --> State of array after loop:
84 array(0) {
88 --> State of referenced array before loop:
89 array(2) {
97 --> State of array after loop:
98 array(1) {
104 --> State of referenced array before loop:
105 array(3) {
116 --> State of array after loop:
117 array(1) {
123 --> State of referenced array before loop:
124 array(4) {
137 --> State of array after loop:
138 array(2) {
147 Shift elements off start of a referenced array, using &$value
149 --> State of referenced array before loop:
150 array(1) {
156 --> State of array after loop:
157 array(0) {
161 --> State of referenced array before loop:
162 array(2) {
171 --> State of array after loop:
172 array(0) {
176 --> State of referenced array before loop:
177 array(3) {
189 --> State of array after loop:
190 array(0) {
194 --> State of referenced array before loop:
195 array(4) {
210 --> State of array after loop:
211 array(0) {
216 Remove current element of a referenced array, using &$value
218 --> State of referenced array before loop:
219 array(1) {
225 --> State of array after loop:
226 array(0) {
230 --> State of referenced array before loop:
231 array(2) {
240 --> State of array after loop:
241 array(0) {
245 --> State of referenced array before loop:
246 array(3) {
258 --> State of array after loop:
259 array(0) {
263 --> State of referenced array before loop:
264 array(4) {
279 --> State of array after loop:
280 array(0) {
285 Adding elements to the end of a referenced array, using &$value
287 --> State of referenced array before loop:
288 array(1) {
300 --> State of array after loop:
301 array(7) {
319 --> State of referenced array before loop:
320 array(2) {
334 --> State of array after loop:
335 array(8) {
355 --> State of referenced array before loop:
356 array(3) {
372 --> State of array after loop:
373 array(9) {
395 --> State of referenced array before loop:
396 array(4) {
414 --> State of array after loop:
415 array(10) {
440 Adding elements to the start of a referenced array, using &$value
442 --> State of referenced array before loop:
443 array(1) {
449 --> State of array after loop:
450 array(2) {
458 --> State of referenced array before loop:
459 array(2) {
468 --> State of array after loop:
469 array(4) {
481 --> State of referenced array before loop:
482 array(3) {
494 --> State of array after loop:
495 array(6) {
511 --> State of referenced array before loop:
512 array(4) {
527 --> State of array after loop:
528 array(8) {