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:

A: 4: {s: 4: "type"; s: 5: "money"; s: 3: "num"; s: 2: "10"; s: 8: "category"; s: 6: "credit"; s: 11: "information"; s: 17: "Copper coins available ";}

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

Serialized. Easy to store.

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.