Re: \n

From: Date: Tue, 04 Mar 2003 09:11:06 +0000
Subject: Re: \n
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-138057@lists.php.net to get a copy of this message
Jon, Anyone, Paragraph sign actually. I'm filterting some data for MySQL. I need a field delimiter. I don't want to use \n. Contents of each field are on a signel line of text. I have come up with this, unless someone can suggest better: if ($testtextarea) { $inputresult = str_replace("\r", "", $testtextarea); $inputresult = str_replace("\n", "¶\n", $inputresult); echo "<textarea cols=30 rows=5 name=testtextarea>$inputresult</textarea>"; } Thanks, John

« previous php.general (#138057) next »