function find_words() { $a = mysql_query("SELECT word from dictionary")or die(mysql_error()); while($a1=mysql_fetch_row($a)) { $value = "/$a1[0]/"; $b = the_content(); $replacewith = "$value"; $replaced = preg_replace($value, $replacewith,$b); } return "$replaced"; }