【发布时间】:2014-05-08 22:55:59
【问题描述】:
我有一个类似的数组
$array[]="This is a test";
$array[]="This is a TEST";
$array[]="TeSt this";
我需要将字符串'test'设置为bold like
$array[]="This is a <b>test</b>";
$array[]="This is a <b>TEST</b>";
$array[]="<b>TeSt</b> this";
我试过str_replace(),但它区分大小写,
注意: 我需要将给定的字符串加粗并保持原样。
【问题讨论】: