PHP: Proper Case Function for PHP Strings
No Comments
by Byron Bennett / June 30th, 2008
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
?
