The encoding (Unicode) at the beginning of PHP \u is turned into Chinese

time:15-05-18 forum:PHP tools and code
  http://zhenghailingjy.blog.163.com/blog... 822828949/

slash and then u and then the beginning of the code () not often seen, it is often forgotten to turn it into Chinese. How to transcode
is actually the Unicode code ~~
use json_encode () in general; the function turns the Chinese to the beginning of \u (Unicode),

[code]echo $aa = json_encode ('verifying code image height (unit)'); [/code]
> The kind of code (Unicode) is turned back, and it is worth noting that the two quotes are to be added to the format as follows:
[code]echo json_decode ('.quot; \u9a8c\u8bc1\u7801\u56fe\u7247\u9ad8\u5ea6\uff08\u5355\u4f4d\uff09.quot; '); [/code]
  • 2

prev:Power game theme wedding English couple ... next:Twenty-fifth disabled days: 39 cuckoo ch...
post comment
Notice



approved   A 9 year old student corrected the w...   A survey of lonely elderly people in...   Salted pickled vegetables are carcin...   Angels don't give up! The brachless ...   A family of four, 30 years of frugal...
rand   The use of UBB in PHP   The difference between engine=innodb...   Method of importing massive data fro...   Popular open source PHP framework ra...   PHP class class Usage Summary
ads

other

Because all the contents of this site are reproduced from other media, the intention is to provide free services to the public, but it does not mean that this site agrees with its views, and can not be responsible for the authenticity of its verification, such as the copyright unit or individual of the manuscript does not want to publish on this site, please Contact me, I will immediately remove it, thank you. Contact: atseashawk@163.com