$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