RE: [PHP] Swapping <BR> for \n... ?

From: Date: Wed, 30 Jan 2002 04:17:51 +0000
Subject: RE: [PHP] Swapping <BR> for \n... ?
Groups: php.general 
Request: Send a blank email to php-general+get-82666@lists.php.net to get a copy of this message
Isn't there a function br2nl() and it's relative nl2br() ?? -----Original Message----- From: Jason Murray [mailto:Jason.Murray@melbourneit.com.au] Sent: Wednesday, January 30, 2002 3:14 PM To: 'Jon'; php-general@lists.php.net Subject: RE: [PHP] Swapping <BR> for \n... ? > I'm processing a form but all the functions I've found on the > web only seem to add the <BR> after the \n. I need to remove the > \n altogether - anyone know how I can kill the \n and put a <BR> > in it's place? Sounds like you want a simple ereg_replace("\n", "<BR>", $sourcestring); Jason -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net For additional commands, e-mail: php-general-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#82666) next »