close
$text = "abc,abcd,abcdee";
If $text contains UTF-8 text, you'll have to add the Unicode modifier "u", so that non-latin characters are not misinterpreted as word boundaries:
$text = preg_replace('/\babc\b/u', 'ghi', $text);
If $text contains UTF-8 text, you'll have to add the Unicode modifier "u", so that non-latin characters are not misinterpreted as word boundaries:
$text = preg_replace('/\babc\b/u', 'ghi', $text);
全站熱搜
留言列表