$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.
$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.
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
.
Previous: Can php or js convert html files to epub files?
Next: Mini Program sets nickname to appear 91003 invalid change stat