【发布时间】:2012-01-04 02:00:53
【问题描述】:
<textarea rows="18" cols="80" style="resize:none;">
<?php
$str = str_replace('<br>', '\n', 'some text<br><br>another line of text');
echo($str);
?>
</textarea>
输出是
some text\n\nanother line of text
这是我想要的输出。
some text
another line of text
有人知道问题出在哪里吗? 提前致谢
【问题讨论】: