Re: str_replace to replace /n with <p> not having desired effect.

From: Date: Thu, 19 Feb 2004 15:59:47 +0000
Subject: Re: str_replace to replace /n with <p> not having desired effect.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-178254@lists.php.net to get a copy of this message
Hello Dave, Thursday, February 19, 2004, 3:52:54 PM, you wrote: DG> $charInfoCss = '<p class="content">' . str_replace('\n', DG> '</p>\n<p class="content">>\n', $charInfo[introE]) . '</p>'; Double-bag it: str_replace("\n", "</p>\n<p class=\"content\">\n", $charInfo[introE]) -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#178254) next »