//把数组变为字符串 $arr=array('sao',1); $string=implode(",", $arr); //把字符串变为数组 $string=explode(",", 'sao,1');