Issues to note about the json_decode function in php

WBOY
Release: 2016-07-25 09:10:26
Original
1292 people have browsed it
json_decode in php has two parameters, the first is the string to be parsed, and the second is whether to parse it into an Array.

json_decode in php has two parameters, the first is the string to be parsed, and the second is whether to parse it into an Array. The string required by this function is relatively strict: (1) Use UTF-8 encoding (2) There cannot be a comma in the last element (3) Single quotes cannot be used (4) There cannot be r or t. If so, please replace it



source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!