php - 帮助数组列表 - PHP MYSQL

标签 php mysql arrays

我有一个这样的数组值。

我的 print_r($_POST) 看起来像这样。 我也可以获得帖子计数值。 (这里计数值为3)

Array ( [tag] => Array ( [4-a] => User1 [8-a] => User2 [3-a] => User3 )) 

现在,我希望将上述数组值放在一个字符串中。

例如:

$all_users = User1,User2,User3

这可能吗。请指教。

哈安

最佳答案

$all_users = implode(',',$your_array);

关于php - 帮助数组列表 - PHP MYSQL,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6151929/

相关文章:

php - 什么是依赖注入(inject)容器?

php - 数据库中的 Steam API 检查

mysql : How to fetch successive numbers

javascript - 使用 JSON.parse 和 JSON.stringify 克隆 JS 数组后,为什么数组的 "undefined"值转换为 "null"?

PHP & MySQL : using group by for categories

php - MySQL 函数不起作用

mysql - 按年/月选择显示

c - 打印数组列表大小崩溃

c# - 用于对不同属性中的不同对象进行排序的通用 IComparer

php - 如何使用谷歌云存储作为 Laravel 5 文件系统?