Yes, PHP does have a proper case function for strings: ucwords($string)
If you’re looking for the lower and upper case string functions…here you go:
strtolower($string);
strtoupper($string);
Why not a strtoproper(), just to keep it consistent? Well, consistency here wouldn’t exactly be consistent for PHP, would it
?



This will upper case only the first letter:
ucfirst ( $string );
It works for one sentence but it wouldn’t be much help for a paragraph or more.