PHP 4.0 Bug #8326 Updated: ucfirst() has no effect if input is ALL CAPITALIZED
| From: | vitaliyf at gameaholic dot com | Date: | Wed, 20 Dec 2000 02:07:33 +0000 |
| Subject: | PHP 4.0 Bug #8326 Updated: ucfirst() has no effect if input is ALL CAPITALIZED | ||
| Groups: | php.dev | ||
| Request: | Send a blank email to php-dev+get-41884@lists.php.net to get a copy of this message | ||
ID: 8326
User Update by: vitaliyf@gameaholic.com
Status: Open
Bug Type: Strings related
Description: ucfirst() has no effect if input is ALL CAPITALIZED
A little correction:
Above bug report refers to ucwords(), however ucfirst() has exact same problem. ucfirst("HELLO
WORLD") should return "Hello world".
Previous Comments:
---------------------------------------------------------------------------
[2000-12-19 20:55:02] vitaliyf@gameaholic.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".
---------------------------------------------------------------------------
Full Bug description available at: http://bugs.php.net/?id=8326