How to convert JavaScript code to its PHP equivalent?

后端 未结 1 581
长发绾君心
长发绾君心 2021-01-26 07:11

I have js code:



        
1条回答
  •  梦毁少年i
    2021-01-26 08:10

    '\u0421' in JavaScript is representative of a character. In Php however, it is not. That's why JavaScript is showing fewer spaces between index 0 and the first instance of 'a'.

    To remedy this... I'm pretty sure this is what you're looking for... How to decode Unicode escape sequences like "\u00ed" to proper UTF-8 encoded characters?

    0 讨论(0)
提交回复
热议问题