This topic has been archived. It cannot be replied.
-
工作学习 / 专业技术讨论 / 我最近开始学php, 哪位高手愿意解答一个简单的问题. 我的问题是: echo "\n" 不灵. 我装了apache2, php5 in windows xp pro. 请问哪里出了问题, 如何解决? 多谢.
-lili98(0);
2005-11-27
(#2630906@0)
-
it works within <pre></pre> anyway.
-lili98(0);
2005-11-27
(#2631098@0)
-
<?php
phpinfo();
?>结果是多少
-lpcome(饭主席);
2005-11-27
(#2631129@0)
-
这是对的, \n 不是HTML, 当你View source可以看到 \n 起作用了, 但在IE中要用 echo "<br>".
-yimingma(ESTHER);
2005-11-28
(#2631641@0)
-
Cool! when I view source, i also noticed that <br> doesn't work either in my notepad. Thank you very much,
Jun
-lili98(0);
2005-11-29
(#2633756@0)
-
所以建议用 echo "<BR>\n"
-benlin(默默向上游);
2005-11-29
(#2633833@0)
-
好主意, 另外nl2br() 也行,虽然不如<br>\n那么安全.
-lili98(0);
2005-11-29
(#2634016@0)