http://sg2.php.net/manual/en/function.nl2br.phpに例があります
<?php
$string = "This\r\nis\n\ra\nstring\r";
echo nl2br($string);
?>
これは戻ります
This<br />
is<br />
a<br />
string<br />
私が望むのは、すべての改行を this に置き換えること<w:br />
です。そして、私はこれ以上改行を見たくありません。
というか、戻りたい
This<w:br />is<w:br />a<w:br />string<w:br />
どうすればこれを達成できますか?