In the previous tutorial, we have learned that an array is a simple list of numbers/values.
Sometimes we want to use more than one key to save data, so we need to use PHP's multi-dimensional array to achieve it.
Basic knowledge
##PHP multidimensional array refers to a More than one arrayPHP can understand it as a multi-dimensional array of two, three, four or five levels or even more levels. However, most people have trouble managing arrays that are more than three levels deep
Note: The dimension of the array indicates the index number of elements that need to be selected
php two-dimensional array
A two-dimensional array is an array of arrays. Similarly, a three-dimensional array is an array of arrays.Note: A two-dimensional array requires two indexes to select elements
Example
Suppose there is a score sheet
Name | ## Language | Mathematics | English | ||||||||||||||||||||||||||||||||||||||||
90 | 80 | 77 | |||||||||||||||||||||||||||||||||||||||||
88 | 75 | 89 | ## 小花 | ||||||||||||||||||||||||||||||||||||||||
95 | 94 |
病毒感染是什么原因 | 珑骧包属于什么档次 | 为什么会有跳蚤 | 女性出汗多是什么原因 | 淼字五行属什么 |
蚊子的天敌是什么 | 老是干咳什么原因 | 左氧氟沙星氯化钠注射作用是什么 | 毛主席的女儿为什么姓李 | 何其是什么意思 |
胎盘位于子宫后壁是什么意思 | tr是什么意思 | 胃嗳气是什么原因 | 箨是什么意思 | 频繁做噩梦是什么原因 |
知柏地黄丸适合什么人吃 | 出汗是什么原因 | 银五行属性是什么 | 羽衣甘蓝是什么菜 | 西安古代叫什么名字 |
3月25日是什么星座dayuxmw.com | 腋下疼痛挂什么科hcv9jop0ns0r.cn | 岁月的痕迹是什么意思hcv8jop4ns5r.cn | roa胎位是什么意思hcv7jop5ns3r.cn | 九斗一簸箕有什么说法hcv9jop4ns1r.cn |
前胸后背出汗是什么原因造成的hcv8jop4ns0r.cn | 两点水的字和什么有关0297y7.com | 中暑吃什么0297y7.com | 女人什么身材最好看hcv9jop5ns4r.cn | 早上喝牛奶有什么好处hcv7jop9ns1r.cn |
梦见钓了好多鱼是什么意思hcv8jop4ns1r.cn | cross是什么牌子creativexi.com | 走马观花是什么生肖bfb118.com | 眼睛有红血丝是什么原因huizhijixie.com | 为什么脚臭叫香港脚hcv9jop4ns8r.cn |
家伙是什么意思hcv8jop6ns3r.cn | 孕妇应该吃什么蔬菜hcv8jop3ns3r.cn | 知世故而不世故是什么意思hcv9jop4ns1r.cn | 什么叫做hcv9jop0ns4r.cn | 牛马是什么意思hcv7jop9ns4r.cn |