This article is a mirror article of machine translation, please click here to jump to the original article.

View: 11394|Reply: 1

php array output json shows blank

[Copy link]
Posted on 6/30/2017 3:52:03 PM | | | |


The output shows an array, but with echo json_encode($res); It won't be shown, I don't know why

Finally, at first I thought that PHP could not directly serialize arrays... (Not a professional in php, I am very amateur)

Finally, it was found that the Internet says that json_encode only supports UTF-8 encoding

Solution:







Previous:Newtonsoft.Json is not serializing object properties properly
Next:dz(discuz) site MIP introduction tutorial
Posted on 5/6/2018 7:51:52 PM |
can be converted
Disclaimer:
All software, programming materials or articles published by Code Farmer Network are only for learning and research purposes; The above content shall not be used for commercial or illegal purposes, otherwise, users shall bear all consequences. The information on this site comes from the Internet, and copyright disputes have nothing to do with this site. You must completely delete the above content from your computer within 24 hours of downloading. If you like the program, please support genuine software, purchase registration, and get better genuine services. If there is any infringement, please contact us by email.

Mail To:help@itsvse.com