私はこれをサンプルテキストとして持っています
......
$text = "Swiss Real";
......
今私がしているのはこれです
$text = str_ireplace('swiss','<font color="red">swiss</font>',$text);
今私の文字列は
$text is '<font color="red">swiss</font> Real'
今やりたい
$text = str_ireplace('re','<font color="red">re</font>',$text);
ここに私の問題があります...「color="red"」のreではなく「Real」のみを変更したいのですが、
どうすればそれを達成できますか。
私を助けてください。