ID: 32451 Updated by: [EMAIL PROTECTED] Reported By: arizabo at gmail dot com -Status: Open +Status: Bogus Bug Type: Unknown/Other Function Operating System: Windows XP PHP Version: 4.3.10 New Comment:
\n and \t have no meaning in HTML other than being normal whitespace. If you want a line break, you need to use a <br /> tag. Do a View Source and you will see that your \n and \t's are working quite nicely. Previous Comments: ------------------------------------------------------------------------ [2005-03-25 06:47:11] arizabo at gmail dot com Description: ------------ 1) upgrade (security patches) mozilla firefox 2) then after some times the \n and \t not working. 3) using echo "test1\n test2"; will give "test1 test2" result without new line. 4) i test the code on both firefox 1.0 and IE 6.0 but the result is same. php programming tool: Apache Friends xampp (php4 and 5, mysql,apache, etc) and i use it as it is without any changes. Reproduce code: --------------- <?php echo "test1\n test2\n \ttest3\n"; echo "test4\n"."test5\t"."test6"; ?> Expected result: ---------------- (actual result copy and paste from firefox 1.0) test1 test2 test3 test4 test5 test6 Actual result: -------------- (actual result copy and paste from firefox 1.0) test1 test2 test3 test4 test5 test6 ------------------------------------------------------------------------ -- Edit this bug report at http://bugs.php.net/?id=32451&edit=1