RE: [PHP] Edit a String
| From: | Jay Blanchard | Date: | Wed, 17 Sep 2003 14:09:13 +0000 |
| Subject: | RE: [PHP] Edit a String | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-162871@lists.php.net to get a copy of this message | ||
[snip]
I have addresses stored in my database. I am trying to create a page
that
generates a letter automatically for the user to print. Given a string
of
format 'xxxx, xxxxx, xxxxx, xxx' how can I edit it so that the comma's
are
replaced with line breaks i.e. /n. This will enable me to display the
address correctly at the top of the page.
[/snip]
http://www.php.net/ereg_replace , or don;t we use the
manual?
Have a pleasant and productive day.