复制代码 代码如下:
int main ()
{
cout << "hahaha" << "/r" << "xixi" ;
}
复制代码 代码如下:
int main()
{
cout << "hahaha" << "/n" << "xixi" ;
}
复制代码 代码如下:
//Order of replacement
$str="Line1/nLine2/rLine3/r/nLine4/n";
$order=array("/r/n","/n","/r");
$replace='<br/>';
$newstr=str_replace($order,$replace,$str);
新闻热点
疑难解答