Re: [PHP] Capitalization of variable

2008-06-21 Thread Shawn McKenzie
tedd wrote: At 11:41 PM -0400 6/18/08, Ron Piggott wrote: How do I make the first letter of a variable be a capital? I am using this with names. If the user types ron I want to save it as Ron. Thanks for your help. Ron Not everyone wants their name capitalized. Cheers, tedd Yeah!

Re: [PHP] Capitalization of variable

2008-06-21 Thread tedd
At 1:01 AM -0500 6/21/08, Shawn McKenzie wrote: tedd wrote: At 11:41 PM -0400 6/18/08, Ron Piggott wrote: How do I make the first letter of a variable be a capital? I am using this with names. If the user types ron I want to save it as Ron. Thanks for your help. Ron Not everyone wants

Re: [PHP] Capitalization of variable

2008-06-21 Thread Nathan Nobbe
On Sat, Jun 21, 2008 at 1:17 PM, tedd [EMAIL PROTECTED] wrote: At 1:01 AM -0500 6/21/08, Shawn McKenzie wrote: tedd wrote: At 11:41 PM -0400 6/18/08, Ron Piggott wrote: How do I make the first letter of a variable be a capital? I am using this with names. If the user types ron I want to

Re: [PHP] Capitalization of variable

2008-06-19 Thread Paul Novitski
At 6/18/2008 09:38 PM, Nathan Nobbe wrote: $streetAddr = 817 17th ST, DENVER COLORADO; echo ucwords(strtolower($streetAddr)); // 817 17th St, Denver Colorado I'd like to mention that, in practical usage, capitalizing the first letter of every word does not correctly capitalize addresses in

Re: [PHP] Capitalization of variable

2008-06-19 Thread Nathan Nobbe
On Wed, Jun 18, 2008 at 11:47 PM, Paul Novitski [EMAIL PROTECTED] wrote: At 6/18/2008 09:38 PM, Nathan Nobbe wrote: $streetAddr = 817 17th ST, DENVER COLORADO; echo ucwords(strtolower($streetAddr)); // 817 17th St, Denver Colorado I'd like to mention that, in practical usage,

Re: [PHP] Capitalization of variable

2008-06-19 Thread Jason Pruim
On Jun 19, 2008, at 3:57 AM, Nathan Nobbe wrote: On Wed, Jun 18, 2008 at 11:47 PM, Paul Novitski [EMAIL PROTECTED] wrote: At 6/18/2008 09:38 PM, Nathan Nobbe wrote: $streetAddr = 817 17th ST, DENVER COLORADO; echo ucwords(strtolower($streetAddr)); // 817 17th St, Denver Colorado I'd

Re: [PHP] Capitalization of variable

2008-06-19 Thread tedd
At 7:58 AM -0400 6/19/08, Jason Pruim wrote: pitch Or I could periodically run your list through our software for a small fee :) On the bright side though, Not only would I be able to fix the case to how you want it, Even with all those dutch names I see around me at least. But I could verify

Re: [PHP] Capitalization of variable

2008-06-19 Thread tedd
At 11:41 PM -0400 6/18/08, Ron Piggott wrote: How do I make the first letter of a variable be a capital? I am using this with names. If the user types ron I want to save it as Ron. Thanks for your help. Ron Not everyone wants their name capitalized. Cheers, tedd -- ---

Re: [PHP] Capitalization of variable

2008-06-19 Thread Jason Pruim
On Jun 19, 2008, at 9:17 AM, tedd wrote: At 7:58 AM -0400 6/19/08, Jason Pruim wrote: pitch Or I could periodically run your list through our software for a small fee :) On the bright side though, Not only would I be able to fix the case to how you want it, Even with all those dutch

Re: [PHP] Capitalization of variable

2008-06-19 Thread Daniel Brown
On Thu, Jun 19, 2008 at 9:17 AM, tedd [EMAIL PROTECTED] wrote: PS: opinion My personal feelings are that the US Postal Service and the US Military are the only parts of the US government that actually work. /opinion +1 I wonder how many of us on the list served. It's got to be

RE: [PHP] Capitalization of variable

2008-06-18 Thread Bob
$var = RON; echo ucfirst(strtolower($var)); -Original Message- From: Ron Piggott Sent: 19 June 2008 13:41 To: PHP General Subject: [PHP] Capitalization of variable How do I make the first letter of a variable be a capital? I am using this with names. If the user types ron I want to

Re: [PHP] Capitalization of variable

2008-06-18 Thread Daniel Brown
On Wed, Jun 18, 2008 at 11:41 PM, Ron Piggott [EMAIL PROTECTED] wrote: How do I make the first letter of a variable be a capital? Press SHIFT on your keyboard. ;-P -- /Daniel P. Brown Dedicated Servers - Intel 2.4GHz w/2TB bandwidth/mo. starting at just $59.99/mo. with no contract!

Re: [PHP] Capitalization of variable

2008-06-18 Thread Ron Piggott
How would I do this for a street address? If the user gave me their address as 12 george street I would like the results to be 12 George Street. Ron -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

Re: [PHP] Capitalization of variable

2008-06-18 Thread Dmitrii Varvashenia
2008/6/19 Ron Piggott [EMAIL PROTECTED]: How would I do this for a street address? If the user gave me their address as 12 george street I would like the results to be 12 George Street. For web I use CSS: text-transform:capitalize; -- WBR, Dmitrii +375 29 60-LINUX +375 29 40-LINUX icq:

Re: [PHP] Capitalization of variable

2008-06-18 Thread Daniel Kolbo
you could explode the string by the space, then use the ucword function walking through the array, then implode http://www.php.net/manual/en/function.explode.php http://www.php.net/manual/en/function.ucwords.php http://www.php.net/manual/en/function.array-walk.php

Re: [PHP] Capitalization of variable

2008-06-18 Thread Nathan Nobbe
On Wed, Jun 18, 2008 at 10:03 PM, Ron Piggott [EMAIL PROTECTED] wrote: How would I do this for a street address? If the user gave me their address as 12 george street I would like the results to be 12 George Street. ucwords(). had you gone to the manual, for ucfirst() from the first reply

Re: [PHP] Capitalization of variable

2008-06-18 Thread Nathan Nobbe
On Wed, Jun 18, 2008 at 10:32 PM, Daniel Kolbo [EMAIL PROTECTED] wrote: you could explode the string by the space, then use the ucword function walking through the array, then implode no, theres no need to use explode here. ucwords() operates over an entire string by itself. if however,