所以这是我的代码:
function csq($string)
{
$search = array(chr(145),
chr(146),
chr(147),
chr(148),
chr(151),
chr(149),
"•");
$replace = array("'",
"'",
'"',
'"',
'-',
'•',
'•');
return str_replace($search, $replace, $string);
}
$username = csq($_POST["username"]);
$titletag = csq($_POST["titletag"]);
$keywordtag = csq($_POST["keywordtag"]);
$desctag = csq($_POST["desctag"]);
$content = csq($_POST["content"]);
据我所知,每个变量都应采用指定名称的 post 变量,然后将其传递给 csq() 函数,该函数将替换特殊字符。
这没有发生。我写错了吗?
这是一个字符串:
• Went over key word list that was generated
o Ant1 highlighted approved words
o We should add a column to calculate the ratio between the number of queries vs. the number of results “in parenthesis”