我有这样的查询:
$content = "How technology is helping to change the way people think about the food on their plate and the food impact for them. Technology could have a role to play in raising awareness of the impact our diets have on the planet.";
$exp = explode(" ", $content)
for($j = 0; $j < count($exp); $j++){
$this->db->query("INSERT INTO news (news_id, news_content) VALUES ('$id', $exp[$j])");
}
但是,我不想插入所有的词,我只需要插入只出现不止一次的词(技术、食品、影响)。有可能这样做吗?有人能帮我吗?
MYYA
慕标琳琳