だからここに私のコードがあります:
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"]);
私が知る限り、各変数は指定された名前のポスト変数を受け取り、それを 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”