note 98955 added to function.nl2br
| From: | LucianoHillcoat at osu1 dot php dot net | Date: | Sat, 17 Jul 2010 19:57:16 +0000 |
| Subject: | note 98955 added to function.nl2br | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-170944@lists.php.net to get a copy of this message | ||
// This function allows to PHP 4 users
// to use HTML <br>
function nl2br_new ($string,$isxhtml=true){
if ($isxhtml == true){
$rtrn = nl2br ($string);
}else{
$s1 = nl2br($string);
$ts[] = "<br />";
$tr[] = "<br>";
$rtrn = str_replace ($ts,$tr,$s1);
}
return $rtrn;
}
----
Server IP: 69.147.83.197
Probable Submitter: 190.178.150.35
----
Manual Page -- http://www.php.net/manual/en/function.nl2br.php
Edit -- https://master.php.net/note/edit/98955
Del: integrated -- https://master.php.net/note/delete/98955/integrated
Del: useless -- https://master.php.net/note/delete/98955/useless
Del: bad code -- https://master.php.net/note/delete/98955/bad+code
Del: spam -- https://master.php.net/note/delete/98955/spam
Del: non-english -- https://master.php.net/note/delete/98955/non-english
Del: in docs -- https://master.php.net/note/delete/98955/in+docs
Del: other reasons-- https://master.php.net/note/delete/98955
Reject -- https://master.php.net/note/reject/98955
Search -- https://master.php.net/manage/user-notes.php