preg_replace("/k(e|i)/", "ch", $tuopost);
preg_replace("/k/", "c", $tuopost);

le espressioni regolari?