RE: [PHP] str_replace to replace /n with <p> not having desiredeffect. [SOLVED]

From: Date: Thu, 19 Feb 2004 16:17:12 +0000
Subject: RE: [PHP] str_replace to replace /n with <p> not having desiredeffect. [SOLVED]
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178257@lists.php.net to get a copy of this message
> From: Adam > Single quotes don't work for the escape characters. > Use double quotes around the str_replace where there is a \n. and... > From: Richard > Double-bag it: > str_replace("\n", "</p>\n<p class=\"content\">\n", > $charInfo[introE]) It's always the simplest of mistakes that one overlooks. Thanks guys! That's done the trick. -- Yoroshiku! Dave G ml@autotelic.com

« previous php.general (#178257) next »