标签:去重 str sdc substr rpo nbsp 字符串去重 pos strpos
$a3 = ‘absdcdeddefeffabcddefef<br/>‘;
$domain = strpos($a3, ‘def‘);
$t = substr($a3,$domain,3);
/* echo str_replace(‘def‘,‘‘,$a3).‘<br/>‘;
echo $domain.‘<br/>‘;
echo $t; */
while(strpos($a3, ‘def‘))
{
$a3 = str_replace(‘def‘,‘‘,$a3).‘<br/>‘;
}
echo $a3;
标签:去重 str sdc substr rpo nbsp 字符串去重 pos strpos
原文地址:http://www.cnblogs.com/hanling/p/7096554.html