Text file breaking!
| From: | zavaboy | Date: | Thu, 05 Jun 2003 00:12:12 +0000 |
| Subject: | Text file breaking! | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-150280@lists.php.net to get a copy of this message | ||
Ok, I don't get it... I put a string to one line ( $string =
str_replace("\n", "<br>", $string); ) but when I put it in a text file I
see
breaks right before <br>. For example:
I have a text area and type:
1
22
333
then, I take that string and replace \n with <br>.
$string = str_replace("\n", "<br>", $string);
then, I put the string in a txt file...
and here's what I see in the text file:
1
<br>22
<br>333
instead of:
1<br>22<br>333
How can I make it that way?
Thanks in advance!
--
- Zavaboy
zavaboy@hotmail.com
www.zavaboy.com