Multidimensional Arrays in PHP: A Multidimensional array is an array which is contained one or more arrays. Each element in the main array can also be an array and so on. You can use multidimensional arrays for doing calculations such as addition of matrix, multiplication of matrix etc. Multidimensional arrays include two-dimensional arrays, three-dimensional arrays and so on. But, arrays with more dimensions are difficult to manage and more indices you need to select an element from an array. For example: In a two-dimensional array you need two indices to select an element or in a three-dimensional array you need three indices to select an element and so on.
If you want to learn about multidimensional arrays in more detail then follow this link: PHP - Multidimensional Arrays
No comments:
Post a Comment