|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
[2000-12-19 20:55 UTC] vitaliyf at gameaholic dot com
Running ucfirst() on a string which is already all capitalized has no effect:
<?php print ucfirst("HELLO WORLD"); ?>
will print "HELLO WORLD".
The expected behavior here is probably to return "Hello World".
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Oct 29 18:00:01 2025 UTC |
A little correction: Above bug report refers to ucwords(), however ucfirst() has exact same problem. ucfirst("HELLO WORLD") should return "Hello world".