problem description
theoretically, the next Chinese in gbk format is 2 bytes. The number and English are 1 byte.
however, when judging the byte length on php, it is found that when the number comes after Chinese, the length of the number is omitted
the environmental background of the problems and what methods you have tried
related codes
/ / Please paste the code text below (do not replace the code with pictures)
mb_strlen ("voice", "GB2312")); / / byte length 4
mb_strlen (" voice 1 voice, "GB2312"); / / byte length 4
mb_strlen (" voice 12 voice, "GB2312"); / / byte length 5
mb_strlen (" 1 voice, "GB2312"); / / byte length 5
mb_strlen (" 1 I you 1, "GB2312"); / / byte length 6