RE: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Andrés Robinet
> -Original Message- > From: M. Sokolewicz [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 27, 2008 6:06 PM > To: Daniel Brown > Cc: Robert Cummings; Keikonium; php-general@lists.php.net > Subject: Re: [PHP] Uppercase first letter of each new line? > > Daniel

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 6:05 PM, M. Sokolewicz <[EMAIL PROTECTED]> wrote: > And what happens if someone uses a(n old) Mac? Where it's just \r (no \n > at all) :) A very good point! Anyone who may be accessing the page and sending data from a pre-OS9 system, an Apple IIe (or any Apple II

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread M. Sokolewicz
Daniel Brown wrote: On Wed, Feb 27, 2008 at 5:08 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: On Wed, 2008-02-27 at 16:38 -0500, Keikonium wrote: > Thank you again Robert, and thank you too Daniel. I have gotten both methods > to work flawlessly so far :). I am slowly learning by trial and

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 5:08 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-02-27 at 16:38 -0500, Keikonium wrote: > > Thank you again Robert, and thank you too Daniel. I have gotten both > methods > > to work flawlessly so far :). I am slowly learning by trial and error here,

RE: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Andrés Robinet
> -Original Message- > From: Robert Cummings [mailto:[EMAIL PROTECTED] > Sent: Wednesday, February 27, 2008 5:09 PM > To: Keikonium > Cc: php-general@lists.php.net > Subject: Re: [PHP] Uppercase first letter of each new line? > > > On Wed, 2008-02-27 at 1

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 5:08 PM, Robert Cummings <[EMAIL PROTECTED]> wrote: > > On Wed, 2008-02-27 at 16:38 -0500, Keikonium wrote: > > Thank you again Robert, and thank you too Daniel. I have gotten both > methods > > to work flawlessly so far :). I am slowly learning by trial and error here,

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 16:38 -0500, Keikonium wrote: > Thank you again Robert, and thank you too Daniel. I have gotten both methods > to work flawlessly so far :). I am slowly learning by trial and error here, > but sometimes a little push in the right direction does some good ^_^. Nothing again

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Keikonium
Thank you again Robert, and thank you too Daniel. I have gotten both methods to work flawlessly so far :). I am slowly learning by trial and error here, but sometimes a little push in the right direction does some good ^_^. Thanks again :). "Robert Cummings" <[EMAIL PROTECTED]> wrote in messag

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 16:24 -0500, Robert Cummings wrote: > On Wed, 2008-02-27 at 16:13 -0500, Keikonium wrote: > > I'm sure this is really easy to accomplish, but I just can't seem to figure > > it out. I have the following: > > > > $str = " > > mary had a little lamb > > it's fleece was white

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Robert Cummings
On Wed, 2008-02-27 at 16:13 -0500, Keikonium wrote: > I'm sure this is really easy to accomplish, but I just can't seem to figure > it out. I have the following: > > $str = " > mary had a little lamb > it's fleece was white as snow > and everywhere that mary went > the lamb was sure to go"; C

Re: [PHP] Uppercase first letter of each new line?

2008-02-27 Thread Daniel Brown
On Wed, Feb 27, 2008 at 4:13 PM, Keikonium <[EMAIL PROTECTED]> wrote: [snip!] > I was thinking something like splitting each new line into a separate > string, capitalizing the first letter with ucfirst(), and then merging the > string back together might work, but I am not sure how to find a ne

[PHP] Uppercase first letter of each new line?

2008-02-27 Thread Keikonium
I'm sure this is really easy to accomplish, but I just can't seem to figure it out. I have the following: $str = " mary had a little lamb it's fleece was white as snow and everywhere that mary went the lamb was sure to go"; Using ucfirst($str) will only capitalize the first letter of the string