//php数组转使用逗号隔开的字符串 //解决方法: $arr = array('lastname', 'email', 'phone'); if($arr){ $gouwutype = implode(",", $arr);//结果'lastname,email,phone' }