function smilies($text) { $sm1 = array("x.x", ":S", ":\", ":-D", ">:O", ":oh:", ":(", ":)", ":o", ":whoa:", ";)", ":D"); $sm2 = array("", "", "", "", "", "", "", "", "", "", "", ""); $text = str_replace($sm1, $sm2, $text); return $text; }