文があります。単語に分割して、ストップワードテーブルのデータで確認します。同じデータの数(合計)を数えたいです。ただし、totalでは同じデータの合計は得られません。必要なデータを合計する方法は?ありがとう
$word ='temporal. the text mining in a evolutionary a theme patterns theme threads clustering';
$symbol = array(".", ",", "\\", "-", "\"", "(", ")", "<", ">", "?", ";", ":", "+", "%", "\r", "\t", "\0", "\x0B");
$cleanMeta = str_replace($symbol, " ", $word);
$key = strtolower($cleanMeta);
$key = explode(" ", trim($key));
foreach($key as $word_key){
$query = mysql_query ("SELECT COUNT(stoplist_word) AS total FROM tb_stopword WHERE stoplist_word = '$word_key'");
while ($row = mysql_fetch_array($query)) {
$row1 = $row['total'];
echo $row1;
}
}