php将数组转换成字符串的方法
导读
php 数组转为字符串 或者字符串转为数组
1-数组转为字符串
$array=["php","Java","web"]; $result=implode(",",$array);
2-字符串转为数组
$str="php,java,web"; $rsult=explode(',',$str);
评论(0)
导读
php 数组转为字符串 或者字符串转为数组
1-数组转为字符串
$array=["php","Java","web"]; $result=implode(",",$array);
2-字符串转为数组
$str="php,java,web"; $rsult=explode(',',$str);