suppose I have $str="nikparsa neginnikparsa somenikparsa"
when I use
$str= str_replace('nikparsa', 'nik parsa', $str);
echo $str;
It will replace neginnikparsa with neginnik parsa too
I just want to replace when nikparsa is a distinct word
I mean like \bnikparsa\b in pregmatch but I don't know how to write it.