<?php
$str = ‘<P align=left><STRONG> <STRONG><FONT color=red><STRONG><FONT color=red>《阿斯顿发生大幅</FONT></STRONG>点击进入</FONT></STRONG></STRONG></P><STRONG>11111212121</STRONG>’;
$source=”/<STRONG>(.*?)<\/STRONG>/”;
$taget='[B]$1[\B]’;
$searchstr='<STRONG>’;
while(strpos($str,$searchstr))
$str = preg_replace($source, $taget, $str);
$str=str_replace(‘ ’,’ ‘,$str);
echo $str;
?>
Comments are closed.