Ec (2); php reads a two-dimensional array, which is found today when writing a multi-file upload. here is an example to illustrate. Please refer to the following questions. $ a1 & nbsp; array (a1, a2, a3); $ b2 & nbsp; array (b1, b2, b3); $ B & nbsp; array ($ a1, $ b2); for ($ i0; $ I & lt; sizeof ($ B); $ I ++) {& nbsp; for ($ j0 script ec (2); script
Php reads two-dimensional arrays,I found a problem when I wrote a multi-File Upload File today. Let's give an example to illustrate it. Please refer to the following questions.
$ A1 = array ('a1', 'a2 ', 'a3 ');
$ B2 = array ('b1 ', 'b2', 'b3 ');
$ B = array ($ a1, $ b2 );
For ($ I = 0; $ I
For ($ j = 0; $ j
Echo $ B [$ I] [$ j],'
'; // Print_r ($ B [$ I]); // $ B [$ j];
}
}
Other for statements can also be implemented using foreach. The principles are almost the same.
Original: www.111cn.net