![]() Join Up! 96814 members and counting! |
|
|||
php3-list | 199908
Date: 08/31/99
Hi
I have a text string being placed into a mysql field from a textarea form,
I want to take that string and replace any kind of newline with a \n so that
So far I've tried just about everything I can think of with eregi_replace's,
$nq=nl2br($foo); // foo is my string...
I tried eregi_replace("\n","\\n",$foo) too - same thing. Lines terminating
Any advice would be most appreciated.
Christopher
-- PHP 3 Mailing List <http://www.php.net/> To unsubscribe, send an empty message to php3-unsubscribe <email protected> To subscribe to the digest, e-mail: php3-digest-subscribe <email protected> To search the mailing list archive, go to: http://www.php.net/mailsearch.php3 To contact the list administrators, e-mail: php-list-admin <email protected>
|