您可以使用该implode()函数将数组转换为字符串:
$array = implode(" ", $string); //space as glue
Run Code Online (Sandbox Code Playgroud)
如果要将其转换回数组,可以使用explode函数:
$string = explode(" ", $array); //space as delimiter
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
21044 次 |
| 最近记录: |