However, it does change this: 7f8954 into 7F8954.
What? I thought that's what you wanted it to do...
SORRY! It should say that it does NOT convert 7f8954 to 7F8954 I'm confused now. You mean $fields[0] = uc($fields[0]); isn't converting 7f8954 to 7F8954?