$wordArr = explode(" ", $word);
for ($i=0;$i<count($wordArr);$i++) {
if ($wordArr[$i] == "<link") {
- $this->remove_words_after_position(&$wordArr, $i, ">");
+ $this->remove_words_after_position($wordArr, $i, ">");
}
}
- $finalArr = $this->handle_space_word(&$wordArr);
+ $finalArr = $this->handle_space_word($wordArr);
$word = implode(" ", $finalArr);
$word = str_ireplace("<link ", '<a href="', $word);
$word = str_ireplace("</link>", '</a>', $word);