How is the php escape length calculated? For example, 12 is a space of 1, a space of 2, why is strlen 5 .... ------ Solution -------------------- No. C: & gt; php-r & quot; echostrlen (12); & quot; 3 ------ solution ------------------ how do you calculate the php escape length if your 1 and 2 are full-angle characters?
For example
1 2
It is a space of 1, a space of 2, why is strlen 5 ....
------ Solution --------------------
No.
C: \> php-r "echo strlen ('1 2 ');"
3
------ Solution --------------------
If your 1 and 2 are full-width characters, isn't that 5?
------ Solution --------------------
There must be a problem with your string, either as the second floor says there are full-angle numbers or full-angle spaces, or there are invisible special characters contained in it.
------ Solution --------------------
It should be a problem with the full width ~~~~ '