PHP数组转字符串与PHP字符串转数组的相关方法解析_PHP教程
程序员文章站
2022-05-01 18:28:55
...
我们今天为大家介绍的PHP数组转字符串 implode()
- php
- $vegetables[0] = "corn";
- $vegetables[1] = "broccoli";
- $vegetables[2] = "zucchini";
- $text = implode(",", $vegetables);