Posted by David Haynes on 07/05/06 14:05
Dan Pearce wrote:
> Processing some text from an external text file into a web page. If I
> use this:
>
> <?
> $s = file_get_contents('text.txt');
> $search = array("@\r\n@si");
>
> $replace = array('</br>');
>
> echo preg_replace($search, $replace, $s);
> ?>
Shouldn't that be either:
$replace = array('<br />');
or
$replace = array('<br>');
-david-
[Back to original message]
|