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
Post a Comment