Two more interesting questions: json_decode and zend unknown Mark 1. for details about json_decode & nbsp; and & nbsp; json_encode, save the array json_encode & nbsp; to the cookie & nbsp ;, use & nbsp; json_decode & nbsp; to convert it to an object once & nbsp; json_decode & nbsp; & nbsp to another interesting question: json_decode and zend unknown mark
1. about json_decode and json_encode,
Save the json_encode array to the cookie,
Use json_decode to convert the data to an object during retrieval.
Only strings can be obtained once using json_decode
I tried json_decode ($ cook1) and got the object,
What is the situation of Shenma?
2. how to add a custom tag in zend studio 9 so that the editor does not receive a warning? Note: Do not close the warning prompt. I want to know how to add a custom tag so that the editor does not prompt unknown tags.
------ Solution --------------------
If it is an array before packaging, your return value of json_decode is obj. The second parameter is set to true. The return value is array.
If it is a string before packaging, your return value of json_decode is string.
When you perform the second json_decode check, the value of this string will be returned in json format if obj is a normal string.