note 47673 added to function.ucfirst

From: Date: Wed, 24 Nov 2004 17:46:37 +0000
Subject: note 47673 added to function.ucfirst
Groups: php.notes 
Request: Send a blank email to php-notes+get-80984@lists.php.net to get a copy of this message
(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) ---- Manual Page -- http://www.php.net/manual/en/function.ucfirst.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+47673 Delete -- http://master.php.net/manage/user-notes.php?action=delete+47673&report=yes Reason: bad code -- http://master.php.net/manage/user-notes.php?action=delete+47673&report=yes&reason=bad+code Reason: spam -- http://master.php.net/manage/user-notes.php?action=delete+47673&report=yes&reason=spam Reason: useless example -- http://master.php.net/manage/user-notes.php?action=delete+47673&report=yes&reason=useless+example Reason: contains commercial links -- http://master.php.net/manage/user-notes.php?action=delete+47673&report=yes&reason=contains+commercial+links Reason: useless note -- http://master.php.net/manage/user-notes.php?action=delete+47673&report=yes&reason=useless+note Reject -- http://master.php.net/manage/user-notes.php?action=reject+47673&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#80984) next »