RE: Capitalization of variable

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



$var = "RON";

echo ucfirst(strtolower($var));



-----Original Message-----
From: Ron Piggott
Sent: 19 June 2008 13:41
To: PHP General
Subject:  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 save it
as "Ron".

Thanks for your help.

Ron


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux