note 47673 rejected from function.ucfirst by sean
| From: | sean@php.net | Date: | Wed, 24 Nov 2004 18:22:41 +0000 |
| Subject: | note 47673 rejected from function.ucfirst by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-80986@lists.php.net to get a copy of this message | ||
Note Submitter: pjoe444 at yahoo dot com
----
(I see the entry prior to the 'added note' below never
seems to have got posted: anyway I've amended it slightly here)
Why no LCFIRST() ???
Given the handy ucfirst() function that turns the
first letter of a string to uppercase, it seems a pity
there's not the reverse also:
an "lcfirst()" turning the first letter to lowercase.
After all there are both strtoupper() and strtolower()
functions.
String manipulations splitting sentences can find good
use for both ucfirst() and lcfirst()
functions
( use isn't confined to sentences, eg Mysql systems of related large and small tables with
corresponding uppercase/lowercase first letter variations, etc)