As an alternative to the not-yet-existing function stritr mentioned in the first note above You can easily do this:
strtr("abc","ABCabc","xyzxyz")
or more general:
strtr("abc",
strtoupper($fromchars).strtolower($fromchars),
$tochars.$tochars);
Just a thought.