Is there a question about the different results of php strtolower in different operating modes?

$str = "cbqNK78 you play games";
after processing with strtolower,
Why can web mode be displayed normally while running on the command line, but "cbqnk78 you play games"
becomes garbled?

Why the results are different in different modes.

May.06,2021

I tested normally locally. Command line and web page may use different configuration files. You can take a look at the output of php-I | grep mbstring . Whether the PHP of the command line is loaded with the mbstring module.


strtolower the underlying layer is the called C language tolower method, which should be no different on CLI and WEB. The guess is caused by the inability of your console and browser to parse the characters .

Menu