I got a record set row. how can I read all the record sets to form a two-dimensional array. This post was last edited by qq914260102 from 2013-11-1410: 08: 13. for example, there are one hundred records in my record set $ row & nbsp. For ($ k0; $ k & lt; $100; $ k ++) {$ arrarray ($ a [$ k], $ B [$ k], $ c [$ k]); pr I got a record set row, and how to read all the record sets to form a two-dimensional array.
This post was last edited by qq914260102 at 10:08:13, January 14 ,.
For example, I have one hundred records in a record set $ row.
For ($ k = 0; $ k <$100; $ k ++ ){
$ Arr = array ($ a [$ k], $ B [$ k], $ c [$ k]);
Print_r ($ arr );
}
Now I can loop these one hundred entries into one hundred unique arrays. now I want to turn this into a two-dimensional array and write and send it ..
Share:
------ Solution --------------------
I will go. The color is incorrect.
$ Array1 = array ('1', '2', '3 ');
$ Array2 = array ('1', '2', '3 ');
$ Arr = array ();
For ($ k = 0; $ k <100; $ k ++ ){
$ Arr [] = array ($ array1 [$ k], $ array2 [$ k]);
}
Echo"";
Print_r ($ arr );