Guys,They do work but you will not see that in the rendered html page (in a browser). Have a look at the source of the produced page and you will see the linebreaks.
These codes are copied from the manual:
***************************************************** echo ("this is the simplest, an SGML processing instruction\n"); echo "This spans multiple lines. The newlines will be output as well"; echo "This spans\nmultiple lines. The newlines will be\noutput as well."; ******************************************************
None of them works.
I suppose your manual was not intending on making html pages, or it was a very lousy one. I would recommend reading the first chapters of the manual on www.php.net to get a general idea of PHP. Then read some tutorials on for instance phpfreaks.com.
I mean there're not any new lines generated in my browser and I have to use the echo"<br>" to print a new line. But why doesn't the \n work? BTW, the \t doesn't work either.
(WindowsXP Pro + PHP Version 4.1.1)
Please advise.
cheers,
feng
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php