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 |