[PHP] Replacing exact words
$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
googler yahoos |
go*gler yah*os |
please help how to make it only replacing exact words?
GBU for all that answering
-
softwarewarden -
Thanks
{{ DiscussionBoard.errors[10075419].message }} -
-
Nathan K -
Thanks
{{ DiscussionBoard.errors[10075628].message }} -
-
basketmen -
Thanks
{{ DiscussionBoard.errors[10076431].message }} -
-
basketmen -
Thanks
{{ DiscussionBoard.errors[10076438].message }} -
-
Nathan K -
Thanks
{{ DiscussionBoard.errors[10076468].message }} -