.:G:. Posted December 18, 2003 Report Share Posted December 18, 2003 Kā var panākt, lai no formas iesūtītais teksts tiek attēlots ar visām daudzajām atstarpēm, kas ir ierakstītas formā? Link to comment Share on other sites More sharing options...
Venom Posted December 18, 2003 Report Share Posted December 18, 2003 Tu domā kaut ko tml? str_replace(' ',' ',$text); str_replace("\t",' ',$text); str_replace("\n",'<br>',$text); echo $text; Link to comment Share on other sites More sharing options...
.:G:. Posted December 18, 2003 Author Report Share Posted December 18, 2003 (edited) Sanāk! Tikai ja pirms tam uzliek vēl htmlentities(), tad saiet galīgā grīstē! Edited December 18, 2003 by .:G:. Link to comment Share on other sites More sharing options...
.:G:. Posted December 19, 2003 Author Report Share Posted December 19, 2003 Kautkā negrib strādāt wordwrap() :huh: ??? Link to comment Share on other sites More sharing options...
des Posted December 19, 2003 Report Share Posted December 19, 2003 Vispirms uztaisi wordwrap, peec tam taisi str_replace(' ',' ',$text)... Link to comment Share on other sites More sharing options...
.:G:. Posted December 19, 2003 Author Report Share Posted December 19, 2003 Es jau taisu, bet tas wordwrap strādā tikai šitā: wordwrwp($text,20,' <br>',1 ), ja tas 1 nav beigās tad tas nestrādā! Link to comment Share on other sites More sharing options...
des Posted December 19, 2003 Report Share Posted December 19, 2003 Ja straadaa, tad jau labi :) Biezhi vien risinaajums ir mazsvariigaaks par rezultaatu! Link to comment Share on other sites More sharing options...
.:G:. Posted December 19, 2003 Author Report Share Posted December 19, 2003 Bet man vajag lai strādā arī bez tā 1! Savādāk tas bāž to <br> ik pēc 20 simboliem, ir tur atstarpe vai nav! Link to comment Share on other sites More sharing options...
Recommended Posts