note 5643 deleted from nl2br by zak

From: Date: Sat, 30 Dec 2000 00:08:56 +0000
Subject: note 5643 deleted from nl2br by zak
Groups: php.notes 
Request: Send a blank email to php-notes+get-9228@lists.php.net to get a copy of this message
i have found if i use str_replace("n", "<BR>", $s); works but sometimes leaves the newline. so i split it into an array: $arr = explode("n", $s); $n = 0; while ($n < count($arr)) { $arr[$n] = Chop($arr[$n]) . "<BR>"; $n++; } $ss = implode("", $arr);

« previous php.notes (#9228) next »