My code:
echo mb_convert_case('Björk Guðmundsdóttir', MB_CASE_UPPER, 'UTF-8');
echo mb_convert_case('Björk Guðmundsdóttir', MB_CASE_LOWER, 'UTF-8');
and the output:
BJRK GUMUNDSDTTIR
bjrk gumundsdttir
Some characters were deleted. Anyone know why?
UPDATE 1:
I noticed that my PHP file was note saved as UTF-8. So, I saved it as UTF-8 and ran the code again. My new results:
BJÖRK GUÃMUNDSDÓTTIR
björk guðmundsdóttir
UPDATE 2:
I guess the problem was just that it was being displayed weird in the browser. Solved by adding header('Content-Type: text/html; charset=utf-8');