Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: definitive - helmikuu 14, 2006, 06:59:59 AP

Otsikko: A new function instead of strtolower
Kirjoitti: definitive - helmikuu 14, 2006, 06:59:59 AP
Hello,
strtolower functions doesn't work correctly for Turkish language, because of İ,Ş,Ğ,Ü,Ö,Ç letters.
Is it possible to write a function for them for case conversion?
thanks
Otsikko: Re: A new function instead of strtolower
Kirjoitti: definitive - helmikuu 14, 2006, 03:41:06 IP
ok i have found

function strtolower_tr( $metin )
{
    return strtolower(strtr( $metin,'ĞÜŞIİÖÇ','ğüşıiöç'));
}