如何将数组插入数组?

编程入门 行业动态 更新时间:2024-10-27 09:40:58
本文介绍了如何将数组插入数组?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

大家好, 我在使用数组时并不是很熟悉。我有一种情况,我必须在数组中添加一个数组。没有循环的代码是:

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 | 行号

更多推荐

如何将数组插入数组?

本文发布于:2023-10-26 11:40:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1530030.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:数组   如何将

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!