Younger brother, I got a record set row. how can I read all the record sets to form a two-dimensional array?

Source: Internet
Author: User
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 );

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.