php - Uppercase first letter and rest lower -


ive been looking around way in php have string converted, first letter becomes uppercase , rest lower case.

at moment doing believe standard way:

ucfirst(strtolower($string)); 

but have found programming languages (ie. tcl) can 1 cammand:

totitle 

is there way in php? it's not problem such, i'm curios dude :d

thanks

function totitle($string){   return ucfirst(strtolower($string)); } 

and voila :)


Comments

Popular posts from this blog

php - regexp cyrillic filename not matches -

c# - OpenXML hanging while writing elements -

sql - Select Query has unexpected multiple records (MS Access) -