要是你现在显示的这个形式你可以用替换 REPLACE ( ''string_replace1'' , ''string_replace2'' , ''string_replace3'' )
你的explode("\r\n",$value)这个地方弄错了,$r=explode("\\r\\n",'HDCD\r\nDTS\r\nDVD\r\nDVD9\r\nVCD\r\nCD\r\nTAPE\r\nLP')
print_r($r)
结果:
Array
(
[0] =>HDCD
[1] =>DTS
[2] =>DVD
[3] =>DVD9
[4] =>VCD
[5] =>CD
[6] =>TAPE
[7] =>LP
)
$str="11.11"$stre=explode('.',$str)
$strc=count($stre)
foreach($stre as $k=>$v){
echo $k.$v
}
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)