Where to add code for String Capitalization Functions
-
Hello everyone – I am experiencing problems with capitalization at my post headlines. I’ve found the code to correct the problem (below) but have no idea where to insert it. Where should I add this code?
function toUpperCase($input){
return strtoupper(strtr($input,’ğüşıiöç’, ‘ĞÜŞIİÖÇ’) );
}function toLowerCase($input){
return strtolower(strtr($input,’ĞÜŞIİÖÇ’,’ğüşıiöç’));
}// also uppercase
function toUpper($text) {
return mb_strtoupper(str_replace(‘i’, ‘İ’, $text), “UTF-8”);
}
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
The topic ‘Where to add code for String Capitalization Functions’ is closed to new replies.