Re: How to change the newline (<br>) into "dot" and <br> ?
| From: | nico_oreka | Date: | Mon, 08 Oct 2001 07:09:58 +0000 |
| Subject: | Re: How to change the newline (<br>) into "dot" and <br> ? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-70324@lists.php.net to get a copy of this message | ||
maybe " eregi_replace("/<br>/",".<br>,$text) " ???
see the manual for eregi_replace(), or ereg_replace ()...
----- Original Message -----
From: "Manisha" <manisha@aurica.com>
To: <php-general@lists.php.net>
Sent: Monday, October 08, 2001 8:42 AM
Subject: [PHP] How to change the newline (<br>) into "dot" and <br> ?
> 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: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>