$word = array('word1','word2');$link = array('<a href="/forums/link1.php">Word1</a>','<a href="/forums/link2.php">Word2</a>');$this->post['message'] = str_ireplace($word, $link, $this->post['message']);
$censoredword = array('word1','word2');$changedword = array('word3','word4');$this->post['message'] = str_ireplace($censoredword, $changedword, $this->post['message']);