nemec Posted October 5, 2005 Report Share Posted October 5, 2005 mai ir ievades foema <textarea> un tad caur post nodod.. es to ierakstu textfailaaa, izskataas shaadi: vaards|1293874612|asfgkashbvfkjasbfv sdfgsdgh bet ja cilveeks uzpiezh enteru <textarea> tad dirsaaa. ierakstaas vaards|1293874612|asfgkashbvfkjasbfv sdfgsdgh asdfgasdgf asdgfasdg asfg kaaa to enteru izdzeest???? Link to comment Share on other sites More sharing options...
bubu Posted October 5, 2005 Report Share Posted October 5, 2005 Kas kur ierakstās? Nesaprotu. Enteru no stringa gribi izvākt? Tad: $text = str_replace("\n", '', $text); Link to comment Share on other sites More sharing options...
nemec Posted October 5, 2005 Author Report Share Posted October 5, 2005 oo bubu tu dievs, es te nl2br() un ko tik nemeeginaaju.. THX Link to comment Share on other sites More sharing options...
Delfins Posted October 5, 2005 Report Share Posted October 5, 2005 eregi_replace( "\r|\n", '', $text ); Link to comment Share on other sites More sharing options...
bubu Posted October 5, 2005 Report Share Posted October 5, 2005 ei tu ar savu eregi! $text = str_replace(array("\r", "\n"), '', $text); :) Link to comment Share on other sites More sharing options...
nemec Posted October 5, 2005 Author Report Share Posted October 5, 2005 nevajag man tos eregi, es tos nepaarzinu Link to comment Share on other sites More sharing options...
Recommended Posts