PHP: Proper Case Function for PHP Strings

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 ;-) ?

Filed under: PHP

Leave a Reply