note 33096 added to function.nl2br

From: Date: Mon, 16 Jun 2003 18:29:25 +0000
Subject: note 33096 added to function.nl2br
Groups: php.notes 
Request: Send a blank email to php-notes+get-50438@lists.php.net to get a copy of this message
To replace enter to br user that: function enter_to_br($input) { $input =str_replace("\n\r","<br>",$input); $input =str_replace("\r\n","<br>",$input); $input =str_replace("\n","<br>",$input); return $input; } ---- Manual Page -- http://www.php.net/manual/en/function.nl2br.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33096 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33096&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33096&report=yes

« previous php.notes (#50438) next »