note 102648 added to function.ucfirst
| From: | jsonx at osu1 dot php dot net | Date: | Sat, 26 Feb 2011 10:17:39 +0000 |
| Subject: | note 102648 added to function.ucfirst | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-177348@lists.php.net to get a copy of this message | ||
<?php
function mb_ucfirst($str) {
if (function_exists('mb_strtoupper')) {
return mb_strtoupper(mb_substr($str, 0, 1, 'utf-8'), 'utf-8') .
mb_substr($str, 1, -1, 'utf-8');
}
return ucfirst($str);
}
?>
----
Server IP: 69.147.83.197
Probable Submitter: 88.226.193.132
----
Manual Page -- http://www.php.net/manual/en/function.ucfirst.php
Edit -- https://master.php.net/note/edit/102648
Del: integrated -- https://master.php.net/note/delete/102648/integrated
Del: useless -- https://master.php.net/note/delete/102648/useless
Del: bad code -- https://master.php.net/note/delete/102648/bad+code
Del: spam -- https://master.php.net/note/delete/102648/spam
Del: non-english -- https://master.php.net/note/delete/102648/non-english
Del: in docs -- https://master.php.net/note/delete/102648/in+docs
Del: other reasons-- https://master.php.net/note/delete/102648
Reject -- https://master.php.net/note/reject/102648
Search -- https://master.php.net/manage/user-notes.php