$var = str_replace("\n", "<br>", $var); sometimes \r\n , but Im not sure... :)
c [EMAIL PROTECTED] (Manisha) wrote in news:[EMAIL PROTECTED]: > 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 -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]