netten bulduğum kodu düzenledim ve sizinde işinizi görür umarım.
<?php
function ucwords_turkce($yazi)
{
return ltrim(mb_convert_case(str_replace(array(' I',' ı', ' İ', ' i'),
array(' I',' I',' İ',' İ'),' '.$yazi),
MB_CASE_TITLE, "UTF-8"));
}
?>kullanımı;
<?php echo ucwords_turkce($metin); ?>