note 92612 deleted from function.nl2br by thiago

From: Date: Fri, 31 Jul 2009 13:05:20 +0000
Subject: note 92612 deleted from function.nl2br by thiago
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-158959@lists.php.net to get a copy of this message
Note Submitter: post at auge8472 dot de ---- @leaf at leafo dot net: Use the array of new line sequences in reversed order. With "\n" before "\r\n" will you never find the last one. So use array("\r\n"=>"<br />","\r"=>"<br />","\n"=>"<br />") [1] instead. [1] Additional "\r" for unexpected old Mac OS'sses. Should be irrelevant, but: "Who knows?".

« previous php.notes (#158959) next »