note 47335 deleted from function.str-replace by sean

From: Date: Thu, 11 Nov 2004 21:35:46 +0000
Subject: note 47335 deleted from function.str-replace by sean
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-80417@lists.php.net to get a copy of this message
Note Submitter: eric at genotix dot nl ---- I needed a way to loose the linebreak and linefeed at the end of a Text line that I imported from a MYSQL database. Unfortunately non of the above scripts really eliminated the CHR(13) + CHR(10) at the end of the line. This command actually does fix the linebreak $newstring = str_replace(chr(13).chr(10), "<br/>", $string); ---- Reason: bad code

« previous php.notes (#80417) next »