复制代码 代码如下:
$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);
以上就介绍了how to train your dragon php join函数应用,包括了how to train your dragon方面的内容,希望对PHP教程有兴趣的朋友有所帮助。