function find_words() { $a = mysql_query("SELECT word from dictionary")or die(mysql_error()); while($words=mysql_fetch_row($a)); return preg_replace('/'.implode('|',$words).'/i','$1',the_content()); }