The two-dimensional array is a collection of items which share a common name and they are organized as a matrix in the form of rows and columns. The two-dimensional array is an array of arrays, so we create an array of one-dimensional array objects.
The following program shows how to create an 2D array :
Creating 2D array 0 1 2 3
Creating 2D array G e e k s f o r G
- How to create an array for JSON using PHP?
- Create a Pandas Series from array
- How to create comma separated list from an array in PHP ?
- Multi-dimensional lists in Python
If you like GeeksforGeeks and would like to contribute, you can also write an article using contribute.geeksforgeeks.org or mail your article to firstname.lastname@example.org. See your article appearing on the GeeksforGeeks main page and help other Geeks.
Please Improve this article if you find anything incorrect by clicking on the "Improve Article" button below.