I saw these things in mysql in the open source program, and what are these.

55 3

In his user table; There's such a field that's called an email setting:
The value in it's like this:
a:2:{s:9:"FOLLOW_ME";s:1:"N";s:10:"NEW_ANSWER";s:1:"N";}
Here's a second.
In the user table there's a rencent topic field, which is also:
a:1:{i:0;s:6:"";}
Why have the fields that have such strange characters.

It's called wecenter.
Thanks to the answer, when storing a binary data, it can be serialized. But I'm trying to an array. I can save it in json, and it can be serialized.
Who's better.

2 Answers

106 0

On top of that, supplement, because the database cannot be stored in an array, can only convert the serialized function with php into a string.
We can deserialize strings with unserialize(), resulting in:

Array ( [FOLLOW_ME] => N [NEW_ANSWER] => N ) 
Array ( [0] => 化妆 ) 
...