RE: [PHP] Capitalization of variable

From: Date: Thu, 19 Jun 2008 03:43:02 +0000
Subject: RE: [PHP] Capitalization of variable
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-275555@lists.php.net to get a copy of this message
$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 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

« previous php.general (#275555) next »