Pauls74462 Posted June 25, 2010 Share Posted June 25, 2010 //Upercase first letter of city$capitalizeFirst = ucfirst("$city");$city = $capitalizeFirst; I found this code to convert "tulsa" to "Tulsa"But how do you convert "oklahoma city" to "Oklahoma City"where $city = city name field? Link to comment Share on other sites More sharing options...
Synook Posted June 25, 2010 Share Posted June 25, 2010 ucwords(). Link to comment Share on other sites More sharing options...
Pauls74462 Posted June 25, 2010 Author Share Posted June 25, 2010 ucwords().TU, it worked great. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.