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!
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
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
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
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,
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
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
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
--
---
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
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
$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
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!
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
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:
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
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
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,
17 matches
Mail list logo