note 99231 added to function.lcfirst
| From: | vantienvnn at gmail dot com | Date: | Thu, 05 Aug 2010 07:27:54 +0000 |
| Subject: | note 99231 added to function.lcfirst | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171381@lists.php.net to get a copy of this message | ||
UTF-8 mb_lcfirst function
<?php
/**
* @param UTF-8 string $str
* @return string the resulting string.
*/
function mb_lcfirst( $str ) {
$before=mb_substr($str, $0, 1, 'UTF-8');
$after=mb_substr($str, $1, mb_strlen(str)-1, 'UTF-8');
return mb_strtolower($before, 'UTF-8').$after;
}
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 113.165.15.232
----
Manual Page -- http://www.php.net/manual/en/function.lcfirst.php
Edit -- https://master.php.net/note/edit/99231
Del: integrated -- https://master.php.net/note/delete/99231/integrated
Del: useless -- https://master.php.net/note/delete/99231/useless
Del: bad code -- https://master.php.net/note/delete/99231/bad+code
Del: spam -- https://master.php.net/note/delete/99231/spam
Del: non-english -- https://master.php.net/note/delete/99231/non-english
Del: in docs -- https://master.php.net/note/delete/99231/in+docs
Del: other reasons-- https://master.php.net/note/delete/99231
Reject -- https://master.php.net/note/reject/99231
Search -- https://master.php.net/manage/user-notes.php