RE: [PHP] Swapping <BR> for \n... ?
| From: | Jason Murray | Date: | Wed, 30 Jan 2002 04:14:04 +0000 |
| Subject: | RE: [PHP] Swapping <BR> for \n... ? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-82665@lists.php.net to get a copy of this message | ||
> 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