escape \n
| From: | Nick Balestra | Date: | Fri, 23 Apr 2010 07:51:21 +0000 |
| Subject: | escape \n | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-304456@lists.php.net to get a copy of this message | ||
Hello guys i am trying to figure out what is worng with thoose special escaped character, like \n \t
\r ...
As i cannot make them working. The browser doesn't display them, but doesn't eithr crate a
new line, or else.
I am using them fro example like this:
print: "this shoudl be on a line \nwhile this on a new line";
I've searched google and saw man people struggling with this, but apparently not a clear answer
to why....maybe is a stupid beginner question, but i would just like to know. (Personally i solved
for the moment by printing out <br> or <pre>, but i would like to understand this.
Cheers, Nick