note 115399 deleted from function.mb-convert-case by salathe
| From: | salathe@php.net | Date: | Fri, 18 Jul 2014 09:47:09 +0000 |
| Subject: | note 115399 deleted from function.mb-convert-case by salathe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-199958@lists.php.net to get a copy of this message | ||
Note Submitter: M Fatih GNSTER
----
Türkçe için ek kullanım; //Use for Turkish
<code>
<?
function ilkBuyuk($str) {
return ltrim(mb_convert_case(str_replace(array('i', 'I'),
array('İ', 'ı'),$str), MB_CASE_TITLE, 'UTF-8'));
}
echo ilkBuyuk('fıstıkçı Åahap çek bir ıhlamur iÅin iŠönce
üretim');
echo ilkBuyuk('FISTIKÃI ÅAHAP ÃEK BİR IHLAMUR İÅİN İŠÃNCE
ÃRETİM');
?>
</code>
Her ikisinin de çıktısı: //Print both
Fıstıkçı Åahap Ãek Bir Ihlamur İÅin İŠÃnce Ãretim