10 for the tip, However i found the way to do it easy:
$term="sdasdsa????????";
$upper_term = strtr(strtoupper($term),
"??????????????????????????????",
"??????????????????????????????");
$lower_term = strtr(strtolower($term),
"??????????????????????????????",
"??????????????????????????????");
where the "???" are all the letters in the cyriliic alphabet. I hope this hopes someone.