RE: [PHP] Title Case

From: Date: Tue, 14 Nov 2000 21:58:46 +0000
Subject: RE: [PHP] Title Case
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-25257@lists.php.net to get a copy of this message
// $string = "ABcDefG" $string = strtolower($string); // $string now = "abcdefg"; $string = ucwords($string); // $string now = "Abcdefg"; > -----Original Message----- > From: Curtis, Lorenzo [mailto:Lorenzo.Curtis@prexar.com] > Sent: Tuesday, November 14, 2000 4:53 PM > To: php-general@lists.php.net > Subject: [PHP] Title Case > > > Anyone know how to convert a string to Title Case. > > I am aware of the strtolower and strtoupper commands, but > cannot find a command that will convert either an ALL UPPER- > or all lower-case variable to Title Case. > > __________________________________ > Lorenzo Curtis > Website/Database Developer > prexar - internet and beyond > lorenzo.curtis@prexar.com > (207) 974-4334 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#25257) next »