use locale; $string_lc = lc($string); $string_uc = uc($string);