note 28776 modified in function.nl2br by tularis

From: Date: Thu, 23 Jan 2003 16:41:53 +0000
Subject: note 28776 modified in function.nl2br by tularis
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42651@lists.php.net to get a copy of this message
[Editor's Note] Please use <br /> instead of <br> for XHTML 1.0 compliancy [/Note] What eightraks said were perfect!! My example is: nl2br: $textfield = ereg_replace("(\r\n|\n|\r)", "<br>", $textfield); br2nl: $textfield = ereg_replace("<br>", "\r\n", $textfield); --was-- What eightraks said were perfect!! My example is: nl2br: $textfield = ereg_replace("(\r\n|\n|\r)", "<br>", $textfield); br2nl: $textfield = ereg_replace("<br>", "\r\n", $textfield); http://www.php.net/manual/en/function.nl2br.php

« previous php.notes (#42651) next »