Lines Matching refs:array
2 Directly modifying an unreferenced array when foreach'ing over it while using &$value syntax.
10 //Build array:
16 echo "--> State of array before loop:\n";
30 echo "--> State of array after loop:\n";
35 echo "\nPopping elements off end of an unreferenced array, using &\$value.";
42 echo "\n\n\nShift elements off start of an unreferenced array, using &\$value.";
49 echo "\n\n\nRemove current element of an unreferenced array, using &\$value.";
56 echo "\n\n\nAdding elements to the end of an unreferenced array, using &\$value.";
63 echo "\n\n\nAdding elements to the start of an unreferenced array, using &\$value.";
72 Popping elements off end of an unreferenced array, using &$value.
74 --> State of array before loop:
75 array(1) {
81 --> State of array after loop:
82 array(0) {
86 --> State of array before loop:
87 array(2) {
95 --> State of array after loop:
96 array(1) {
102 --> State of array before loop:
103 array(3) {
114 --> State of array after loop:
115 array(1) {
121 --> State of array before loop:
122 array(4) {
135 --> State of array after loop:
136 array(2) {
145 Shift elements off start of an unreferenced array, using &$value.
147 --> State of array before loop:
148 array(1) {
154 --> State of array after loop:
155 array(0) {
159 --> State of array before loop:
160 array(2) {
169 --> State of array after loop:
170 array(0) {
174 --> State of array before loop:
175 array(3) {
187 --> State of array after loop:
188 array(0) {
192 --> State of array before loop:
193 array(4) {
208 --> State of array after loop:
209 array(0) {
214 Remove current element of an unreferenced array, using &$value.
216 --> State of array before loop:
217 array(1) {
223 --> State of array after loop:
224 array(0) {
228 --> State of array before loop:
229 array(2) {
238 --> State of array after loop:
239 array(0) {
243 --> State of array before loop:
244 array(3) {
256 --> State of array after loop:
257 array(0) {
261 --> State of array before loop:
262 array(4) {
277 --> State of array after loop:
278 array(0) {
283 Adding elements to the end of an unreferenced array, using &$value.
285 --> State of array before loop:
286 array(1) {
298 --> State of array after loop:
299 array(7) {
317 --> State of array before loop:
318 array(2) {
332 --> State of array after loop:
333 array(8) {
353 --> State of array before loop:
354 array(3) {
370 --> State of array after loop:
371 array(9) {
393 --> State of array before loop:
394 array(4) {
412 --> State of array after loop:
413 array(10) {
438 Adding elements to the start of an unreferenced array, using &$value.
440 --> State of array before loop:
441 array(1) {
447 --> State of array after loop:
448 array(2) {
456 --> State of array before loop:
457 array(2) {
466 --> State of array after loop:
467 array(4) {
479 --> State of array before loop:
480 array(3) {
492 --> State of array after loop:
493 array(6) {
509 --> State of array before loop:
510 array(4) {
525 --> State of array after loop:
526 array(8) {