1foreach
2-----
3<?php
4
5foreach ($arr as $val) {
6
7}
8
9foreach ($arr as &$val) {
10
11}
12
13foreach ($arr as $key => $val) {
14
15}
16
17foreach ($arr as $key => &$val) {
18
19}
20-----
21foreach ($arr as $val) {
22}
23foreach ($arr as &$val) {
24}
25foreach ($arr as $key => $val) {
26}
27foreach ($arr as $key => &$val) {
28}