Hi guys, below are simple replacing script a word in to another word, or censorship PHP Code: $word = array(
[PHP] Replacing exact words
6
Hi guys, below are simple replacing script a word in to another word, or censorship
the problem its currently also replacing another words like
into
please help how to make it only replacing exact words?
GBU for all that answering
PHP Code:
$word = array(
'google',
'yahoo'
);
$link = array(
'go*gle',
'yah*o'
);
$this->post['message'] = str_ireplace($word, $link, $this->post['message']);
the problem its currently also replacing another words like
into
please help how to make it only replacing exact words?
GBU for all that answering
- softwarewarden
- Nathan K
- basketmen
- basketmen
- Nathan K
Next Topics on Trending Feed
-
6