问题描述
这很简单,但是我不知道要搜索什么才能找到答案.有人可以告诉我该数据以哪种格式插入表中吗?
This is simple, but I don't know what to search to find my answer. Can someone please tell me in what format this data was inserted in the table ?
我想使用PHP读取/插入/更新它.
I want to read/insert/update it using PHP.
图片http://img841.imageshack.us/img841/4835/screenshot2011110813502502. png
以下是文本:
推荐答案
这是一个序列化的数组,您可以反序列化将其转换回数组类型,然后序列化使其返回字符串.
This is an serialized array, you can unserialize it to convert it back to the array type, and then serialize it back to string.
关于这是json还是序列化数据,显然存在很多争论,但是:旁边的即将到来的字符串的长度指示符清楚地表明了序列化.
There is obviously a lot of debate on this being json or serialized data, but the length indicators for the upcoming string next to : clearly indicate a serialization.
$aArray = unserialize($sContents);
$sContents = serialize($aArray);
这篇关于这是什么格式?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!