RE: [PHP] Edit a String

From: Date: Wed, 17 Sep 2003 15:14:16 +0000
Subject: RE: [PHP] Edit a String
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-162889@lists.php.net to get a copy of this message
--- Jay Blanchard <jay.blanchard@niicommunications.com> wrote: > [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? > Or the less demanding str_replace() > Have a pleasant and productive day. > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > ===== Mark Weinstock mark_weinstock@yahoo.com *************************************** You can't demand something as a "right" unless you are willing to fight to death to defend everyone else's right to the same thing. *************************************** __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free, easy-to-use web site design software http://sitebuilder.yahoo.com

« previous php.general (#162889) next »