Hi, The newline character is being ignored. Anyone know why that is? Example code ------------- <?php echo( "blah \n blah" ); ?> Resulting output in web browser: -------------------------------- blah blah Thanks in advance. Ade
hmm, i just noticed you dont need to enclose the string in ( ) when using echo you can use echo nl2br("blah \n blah"); or echo 'blah <br /> blah';
It did, but the browser doesn't interrupt system based strings like \n \r \t If you view the source of the page, you will definitely see that it did indeed create a new line. I use "\n" when I am running the script in Command Prompt/SSH, but if I am running the script on the web, I use <br/>. Either code of serialcoder will work. Peace,