Home >Backend Development >PHP Tutorial >Issues to note about the json_decode function in php

Issues to note about the json_decode function in php

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOriginal
2016-07-25 09:10:261366browse
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



Statement:
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