Re: [PHP] adding a symbol in front of each line

2004-11-18 Thread Merlin
Jason Wong wrote: On Wednesday 17 November 2004 23:15, Merlin wrote: actually that is not as easy as it looks. Nowhere in your original post did you specify what exactly it is you wanted. Lets say we want to ad a \n after each 80 characters. There is always the problem what happens if the line h

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] > You should get yourself a *real* mail client :) Cut Jay some slack. There's not too many clients available out there for the TSR-80. ;) [/snip] Oh great! Now my secret is out! What am I going to do when fossil fuels become a thing of the past? -- PHP General Mailing List (http://www.p

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread John Nichel
Jason Wong wrote: On Thursday 18 November 2004 00:45, Jay Blanchard wrote: Yeah, I know. I hit reply-to-all and got that. Force of habit. You should get yourself a *real* mail client :) Cut Jay some slack. There's not too many clients available out there for the TSR-80. ;) -- John C. Nichel Üb

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jason Wong
On Thursday 18 November 2004 00:45, Jay Blanchard wrote: > Yeah, I know. I hit reply-to-all and got that. Force of habit. You should get yourself a *real* mail client :) -- Jason Wong -> Gremlins Associates -> www.gremlins.biz Open Source Software Systems Integrators * Web Design & Hosting * In

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jason Wong
On Wednesday 17 November 2004 23:15, Merlin wrote: > actually that is not as easy as it looks. Nowhere in your original post did you specify what exactly it is you wanted. > Lets say we want to ad a \n after each 80 characters. There is always the > problem what happens if the line has already a

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] It's usually not a good idea to include the author in your reply unless they specifically asked to be CC'ed. There's little value in receiving two copies of the same post. [/snip] Yeah, I know. I hit reply-to-all and got that. Force of habit. -- PHP General Mailing List (http://www.php.n

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jason Wong
On Wednesday 17 November 2004 23:33, Jay Blanchard wrote: > And your e-mail address keeps getting bounced... > > The following recipient(s) could not be reached: It's usually not a good idea to include the author in your reply unless they specifically asked to be CC'ed. There's little value in r

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] ... [/snip] And your e-mail address keeps getting bounced... The following recipient(s) could not be reached: [EMAIL PROTECTED] on 11/17/2004 9:31 AM The e-mail account does not exist at the organization this message was sent to. Check the e-mail address, or contact the

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] That looks very complicated to me. Can anybody point me into the right direction? Thanx for any help, [/snip] strip the \n from the existing text first, then '>' . $line . '\n' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Merlin
Chris Boget wrote: Hi there, I would like to add a > symbol infront of each line I pull out of a database. Similar to the function seen in online e-mail clients when you click on reply. Has anybody an idea on how to add a symbol in front of each line?` Should be simple enough using explode() follo

RE: [PHP] adding a symbol in front of each line

2004-11-17 Thread Jay Blanchard
[snip] I would like to add a > symbol infront of each line I pull out of a database. Similar to the function seen in online e-mail clients when you click on reply. Has anybody an idea on how to add a symbol in front of each line?` [/snip] Use a '.' example -- while(!feof($file)){ $line = fg

Re: [PHP] adding a symbol in front of each line

2004-11-17 Thread Chris Boget
> Hi there, > I would like to add a > symbol infront of each line I pull out of a database. > Similar to the function seen in online e-mail clients when you click on reply. > Has anybody an idea on how to add a symbol in front of each line?` Should be simple enough using explode() followed by impl