note 68916 added to function.mb-convert-case

From: Date: Tue, 15 Aug 2006 22:30:45 +0000
Subject: note 68916 added to function.mb-convert-case
Groups: php.notes 
Request: Send a blank email to php-notes+get-115955@lists.php.net to get a copy of this message
If you want to capitalize the first letter of a multibyte string, you can use this function. <?php function capitalize($str, $encoding = null) { $str = mb_strtoupper($str{0}, $encoding) . mb_substr($str, 1, null, $encoding); return $str; } ?> ---- Server IP: 82.146.33.222 Probable Submitter: 81.244.192.77 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.mb-convert-case.php Edit -- https://master.php.net/note/edit/68916 Del: integrated -- https://master.php.net/note/delete/68916/integrated Del: useless -- https://master.php.net/note/delete/68916/useless Del: bad code -- https://master.php.net/note/delete/68916/bad+code Del: spam -- https://master.php.net/note/delete/68916/spam Del: non-english -- https://master.php.net/note/delete/68916/non-english Del: in docs -- https://master.php.net/note/delete/68916/in+docs Del: other reasons-- https://master.php.net/note/delete/68916 Reject -- https://master.php.net/note/reject/68916 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#115955) next »