我爱占星网 我爱占星网
首页
编程
java
php
前端
首页 编程 java php 前端

如何在php中将双数组数据存储到字符串中?

I have data in double array in php. Now I need to store that array data into string. How can I do that in php? I am new to php. Please help me in this regard.

Array is as follows:

   Array ( [0] => Array ( [id] => 100 [type] => test1 [count] => 8 [count2] => 8) 
   [1] => Array ( [id] => 103 [type2] => test2[count2] => 3 [count3] => 3 ))

You can use implode() to convert an array into a string: http://php.net/manual/en/function.implode.php

近期文章

  • 使用标题(位置)重定向开关案例中的循环
  • 将PHP变量数据返回到HTML页面
  • 如何使用稳定版的Zend 2.2.0框架?
  • 如何在PHP中从数组填充组合框? [关闭]
  • 从单个表中连接两组结果
  • 使用PHP,我如何检查PDF文件是否有错误
  • 使用PHPExcel将筛选结果导出到Excel
  • wordpress网站上的2个域名,用于不同的页面
  • 无法使用PHP清除cookie
  • 使用CodeIgniter加载视图文件夹外部的视图
  • 如何在zf2中的休息Web服务中获取Xml输出?
  • 显示带有重音字符的抓取网址
  • PHP C扩展,利用Late Static Binding
  • 搜索系统不搜索姓名和姓氏
  • Paypal与cart66的运输计算器连接
  • PHP PDO登录脚本不起作用。 包含错误
  • php symfony doctrine或从2个表中获取数据
  • 仅在一台计算机上的网页上出现500错误
  • 如何使用Magento的Position框来订购数组
  • 如何上传使用php创建的csv文件?

Copyright ©2022 我爱占星 All Rights Reserved.

浙ICP备2022030071号-1

部分图文来自网络,如有侵犯您的版权,请告诉我们删除

友情链接:代码精华