Turkish solution:
<?php
mb_internal_encoding("UTF-8");
mb_regex_encoding("UTF-8");
function tr_ilkbuyuk($text)
{
$text = str_replace("I","ı",$text);
$text = mb_strtolower($text, 'UTF-8');
if($text[0] == "i")
$tr_text = "İ".substr($text, 1);
else
$tr_text = mb_convert_case($text, MB_CASE_TITLE, "UTF-8");
return trim($tr_text);
}
function tr_ucwords($text)
{
$p = explode(" ",$text);
if(is_array($p))
{
$tr_text = "";
foreach($p AS $item)
$tr_text .= " ".tr_ilkbuyuk($item);
return trim($tr_text);
}
else
return tr_ilkbuyuk($text);
}
$deger = "ıişllşlsdg";
echo tr_ucwords($deger);
?>