php join函数应用

澳门新葡萄京官网首页 ,$key = array();
$val = array();
foreach ($_POST as $k=>$v)
{
$key[] =
‘`’.strip_tags(mysql_real_escape_string(trim($k))).’`’;
$val[] = “‘”.strip_tags(mysql_real_escape_string(trim($v))).”‘”;
}

$keys = join(“,”,$key);
$vals = join(“,”,$val);

发表评论

电子邮件地址不会被公开。 必填项已用*标注