In his user table, there is such a field called email_setting: the value in it is like this: a: 2: {s: 9: & quot; FOLLOW_ME & quot ;; s: 1: & quot; N & quot; s: 10: & quot; NEW_ANSWER & quot; s: 1: & quot; N & quot ;;} what does this mean? In the user table, there is a rencent_topic field, which is also like this: a: 1... in the user table; there is such a field called email_setting:
The value is as follows:
a:2:{s:9:"FOLLOW_ME";s:1:"N";s:10:"NEW_ANSWER";s:1:"N";}
What does this mean?
The user table contains a rencent_topic field, which is also like this:
A: 1: {I: 0; s: 6: "makeup ";}
Why do some fields have such strange characters?
This open-source program is called wecenter.
Thanks for the answer downstairs. When storing a binary data, it can be serialized. But I want to save an array. I can store the data in json or serialized format.
Who is better?
Reply content:
In his user table, there is such a field called email_setting:
The value is as follows:
a:2:{s:9:"FOLLOW_ME";s:1:"N";s:10:"NEW_ANSWER";s:1:"N";}
What does this mean?
The user table contains a rencent_topic field, which is also like this:
A: 1: {I: 0; s: 6: "makeup ";}
Why do some fields have such strange characters?
This open-source program is called wecenter.
Thanks for the answer downstairs. When storing a binary data, it can be serialized. But I want to save an array. I can store the data in json or serialized format.
Who is better?
Upstairs is right. To add, because the database cannot store arrays, it can only convert its php serialization function into a string.
We can useunserialize()Deserialize the string. The result is:
Array ([FOLLOW_ME] => N [NEW_ANSWER] => N) Array ([0] => makeup)
This is serialized data. In php, strings are processed using serialize ().