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


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to