Php, what is the difference between strtolower and mb_strtolower

emailphpstring

In PHP, what is the difference between strtolower and mb_strtolower?

If I want to convert submitted email address, to be converted to lower-case, which one should I use? Is there any email like this: Name@Domain-Test.com

If there are such email, should I still convert the submitted email address to lower case?

Best Solution

strtolower(); doesn't work for polish chars

<?php strtolower("mĄkA"); ?>

will return: mĄka;

the best solution - use mb_strtolower()

<?php mb_strtolower("mĄkA",'UTF-8'); ?> 

will return: mąka

See strtolower() & mb_strtolower() in PHP Manual