1
<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>
輸出是 n沒有文字方面的工作
some text\n\nanother line of text
這是我想要的輸出。
some text
another line of text
有人知道這個問題嗎? 在此先感謝
謝謝這個作品 – 2012-01-04 02:05:21