Unicode character in PHP string

前端 未结 8 1748
生来不讨喜
生来不讨喜 2020-11-22 14:17

This question looks embarrassingly simple, but I haven\'t been able to find an answer.

What is the PHP equivalent to the following C# line of code?

s         


        
8条回答
  •  时光取名叫无心
    2020-11-22 14:32

    html_entity_decode('エ', 0, 'UTF-8');
    

    This works too. However the json_decode() solution is a lot faster (around 50 times).

提交回复
热议问题