Re: How to change the newline (<br>) into "dot" and <br> ?

From: Date: Fri, 19 Oct 2001 22:49:01 +0000
Subject: Re: How to change the newline (<br>) into "dot" and <br> ?
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-71642@lists.php.net to get a copy of this message
$var = str_replace("\n", "<br>", $var); sometimes \r\n , but Im not sure... :) c manisha@aurica.com (Manisha) wrote in news:4.2.2.20011008143551.00a32a90@192.168.1.116: > I am having the text fetched from mySQL database. I converted newline to > <br> with nl2br function. > > I need to detect <br> and need to put 'dot' in front of it and then > display. (like unnumbered list with 'dot' as a separator) > > Is there any command line (substring and indexof to detect it ?) > > thanks in advance, > > manisha

« previous php.general (#71642) next »