How to make uppercase Cyrillic?

So how can I get uppercase Cyrillic characters?

echo strtoupper("");

      

this does not work.

+3


source to share


2 answers


Use mb_strtoupper

with correct coding (without it it won't work):



echo mb_strtoupper("", "utf-8");


      

+6


source


You will need to use MultiByte features:

mb_strtoupper



Make sure MB is installed and enabled in your PHP;)

+3


source







All Articles