Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] Zamienić Entery na \r\n
ewelinac18
post
Post #1





Grupa: Zarejestrowani
Postów: 99
Pomógł: 0
Dołączył: 11.07.2007

Ostrzeżenie: (0%)
-----


Nie wiem pod czym to szukać :/
Chciałabym aby ten tekst:
ble ble ble
coś coś coś
tekst tekst
wyświetlił mi sie w
<textarea>ble ble ble \r\n coś coś coś \r\n tekst tekst</textarea>
porostu zamienić Entery na \r\n
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Kowalikus
post
Post #2





Grupa: Zarejestrowani
Postów: 111
Pomógł: 25
Dołączył: 23.07.2004

Ostrzeżenie: (0%)
-----


  1. <?php
  2. $string = str_replace(array("r\n", "\nr", "\n", "r"), "r\n", $string);
  3. ?>


Ten post edytował Kowalikus 16.02.2008, 11:11:06
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
2 Użytkowników czyta ten temat (2 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Aktualny czas: 12.10.2025 - 04:24