Re: [PHP] preg_replace \\1 yIKES!

2006-06-14 Thread tedd
At 3:45 AM -0700 6/14/06, sam wrote: >On Jun 13, 2006, at 1:58 PM, tedd wrote: > >>At 11:33 AM -0700 6/13/06, sam wrote: >>>Wow this is hard I can't wait till I get the hang of it. >>> >>>Capitalize the first letter of a word. >> >>Try: >> >>>$word = "yikes"; >>$word[0]=strtoupper($word[0]); >>echo

Re: [PHP] preg_replace \\1 yIKES!

2006-06-14 Thread Jochem Maas
Stut wrote: > Jochem Maas wrote: >> I did berate the fact that you waited no more than 7 minutes before >> sending a 'help me' reminder regarding your original post. > > While I agree with most of what you are saying, you may want to check > that email again. Sams 'for Eyes burning...' email was

Re: [PHP] preg_replace \\1 yIKES!

2006-06-14 Thread sam
And hey yo, Jochem, I did RTFM, for hours, I always do before I post to the list. I just I'd tell you to RTFM (although I did tell you to read the manual regarding the specifics of using preg_replace()'s 'e' modifier after showing you a working example of how to use it, based on your ori

Re: [PHP] preg_replace \\1 yIKES!

2006-06-14 Thread Stut
Jochem Maas wrote: I did berate the fact that you waited no more than 7 minutes before sending a 'help me' reminder regarding your original post. While I agree with most of what you are saying, you may want to check that email again. Sams 'for Eyes burning...' email was in response to someo

Re: [PHP] preg_replace \\1 yIKES!

2006-06-14 Thread Jochem Maas
sam wrote: > > On Jun 13, 2006, at 1:58 PM, tedd wrote: > >> At 11:33 AM -0700 6/13/06, sam wrote: >>> Wow this is hard I can't wait till I get the hang of it. >>> >>> Capitalize the first letter of a word. >> >> Try: >> >> > $word = "yikes"; >> $word[0]=strtoupper($word[0]); >> echo($word); >> ?

Re: [PHP] preg_replace \\1 yIKES!

2006-06-14 Thread sam
On Jun 13, 2006, at 1:58 PM, tedd wrote: At 11:33 AM -0700 6/13/06, sam wrote: Wow this is hard I can't wait till I get the hang of it. Capitalize the first letter of a word. Try: This blows my mind. What should one think, "everything is an array"? Well, okay not every but everything

Re: [PHP] preg_replace \\1 yIKES!

2006-06-13 Thread Dave Goodchild
On 13/06/06, tedd <[EMAIL PROTECTED]> wrote: At 11:33 AM -0700 6/13/06, sam wrote: >Wow this is hard I can't wait till I get the hang of it. > >Capitalize the first letter of a word. Why not use ucfirst(), that is what the function is for. -- ---

Re: [PHP] preg_replace \\1 yIKES!

2006-06-13 Thread tedd
At 11:33 AM -0700 6/13/06, sam wrote: >Wow this is hard I can't wait till I get the hang of it. > >Capitalize the first letter of a word. Try: tedd -- http://sperling.com http://ancientstones.com http://eart

Re: [PHP] preg_replace \\1 yIKES!

2006-06-13 Thread Robert Cummings
On Tue, 2006-06-13 at 15:07, Jochem Maas wrote: > sam wrote: > > > > for > > Eyes burning; caffein shakes; project overdue > > nobody here cares whether your project is overdue - > > waiting 7 minutes before sending a 'reminder' about the > question you asked suggests you need to take a PATIENCE

Re: [PHP] preg_replace \\1 yIKES!

2006-06-13 Thread Jochem Maas
:[EMAIL PROTECTED] >> Sent: Tuesday, June 13, 2006 2:34 PM >> To: PHP >> Subject: [PHP] preg_replace \\1 yIKES! >> >> >> Wow this is hard I can't wait till I get the hang of it. >> >> Capitalize the first letter of a word. >> >> echo

Re: [PHP] preg_replace \\1 yIKES!

2006-06-13 Thread Jochem Maas
sam wrote: > > Wow this is hard I can't wait till I get the hang of it. > > Capitalize the first letter of a word. > > echo preg_replace('/(^)(.)(.*$)/', strtoupper('\\2') . '\\3', 'yikes!'); > // outputs yikes! > > Nope didn't work. > > So I want to see if I'm in the right place: > > echo pr

Re: [PHP] preg_replace \\1 yIKES!

2006-06-13 Thread sam
for Eyes burning; caffein shakes; project overdue Thanks Why not just use ucfirst http://us2.php.net/manual/en/ function.ucfirst.php? -Original Message- From: sam [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 13, 2006 2:34 PM To: PHP Subject: [PHP] preg_replace \\1 yIKES! Wow this

[PHP] preg_replace \\1 yIKES!

2006-06-13 Thread sam
Wow this is hard I can't wait till I get the hang of it. Capitalize the first letter of a word. echo preg_replace('/(^)(.)(.*$)/', strtoupper('\\2') . '\\3', 'yikes!'); // outputs yikes! Nope didn't work. So I want to see if I'm in the right place: echo preg_replace('/(^)(.)(.*$)/', '\\1' .