php数组转使用逗号隔开的字符串
解决方法:
假如$_POST['gouwutype']是数组array('lastname', 'email', 'phone');
if(isset($_POST['gouwutype'])){
$gouwutype = implode(",", $_POST['gouwutype']);//结果'lastname,email,phone'
}
向大家推荐《Activiti工作流实战教程》:https://xiaozhuanlan.com/activiti
php数组转使用逗号隔开的字符串
解决方法:
假如$_POST['gouwutype']是数组array('lastname', 'email', 'phone');
if(isset($_POST['gouwutype'])){
$gouwutype = implode(",", $_POST['gouwutype']);//结果'lastname,email,phone'
}
有建议,请留言!