Which of the following experts can understand this line of code?
Source: Internet
Author: User
Who can understand this line of code? In the job table of the phpwind database, there is a reward field. the saved string seems to be in json format, but I have never seen this format. how can I use it? what are the advantages? It seems to be the rule configuration after the task is executed. the code is as follows: a: 4: {s: 4: & quot; type & quot; who can understand this line of code?
In the job table of the phpwind database, there is a reward field. the saved string seems to be in json format, but I have never seen this format. how can I use it? what are the advantages?
It seems to be the rule configuration after the task is executed. the code is as follows:
------ Solution --------------------
Serialized. Easy to store.
------ Solution --------------------
This is a php serialized string generated using the serialize function.
Available unserialize function restoration
The data in the example is an associated array with four elements, which must not be directly stored in the database.
The function of serialization is to convert a complex data structure into a simple string, which makes it easy to save
------ Solution --------------------
Positive solution, which can be restored using unserialize
Discussion
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service