php数组转使用逗号隔开的字符串
解决方法:
假如$_POST['gouwutype']是数组array('lastname', 'email', 'phone');
if(isset($_POST['gouwutype'])){
$gouwutype = implode(",", $_POST['gouwutype']);//结果'lastname,email,phone'
}
php数组转使用逗号隔开的字符串
解决方法:
假如$_POST['gouwutype']是数组array('lastname', 'email', 'phone');
if(isset($_POST['gouwutype'])){
$gouwutype = implode(",", $_POST['gouwutype']);//结果'lastname,email,phone'
}
有建议,请留言!