本文介绍了如何将数组插入数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好, 我在使用数组时并不是很熟悉。我有一种情况,我必须在数组中添加一个数组。没有循环的代码是:
Hi everyone, I am not very much familiar while working with arrays. I have a situation where i have to add an array into an array. the code without loop is:
展开 | 选择 | Wrap | 行号 推荐答案你的意思是二维数组? PHP 2d数组实际上是数组中的数组,而不是C中的2d矩阵,所以这可以完成 虽然我很难理解你想要做什么。 You mean a 2d array? A PHP 2d array is actually an array inside an array, and not a 2d matrix as in C, so this can be done Although I am struggling to understand what you are trying to do. 这让我失望,因为它显示单个数组 This is failing me because its showing a single array
简明扼要的目标是更多比模糊的''这是让我失望..'
A concise desrciption of your aim is more helpful than a vague ''This is failing me..''
感谢您的回复。 wat我试图做的是将一个表的每一行保存到单独的数组中,使得每个数组在while循环中保存一个单独的地址值。 就像我有2条记录里面一个mysql表。现在我试图使用while循环获取其记录 thank you for ur reply. wat im trying to do is saving each row of a table into separate array in such way that each array holds a separate value of address inside a while loop. like i have 2 records inside a mysql table. now im trying to fetch its records using while loop 展开 | 选择 | Wrap | 行号
更多推荐
如何将数组插入数组?
发布评论