这很简单,但是我不知道要搜索什么才能找到答案.有人可以告诉我该数据以哪种格式插入表中吗?
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.
图片img841.imageshack.us/img841/4835/screenshot2011110813502502. png
以下是文本:
a:22:{s:12:"productimage"; s:82:"/wp-content/uploads/products_img/bla.jpg"; s:13:"productimage1"; s:0:"; s:13:"productimage2"; s:0:"; s:13:"productimage3"; s:0:"; s:13:"productimage4"; s:0:"; s:13:"productimage5; s:0:"; s:13:" productimage6; s:0:"; s:5:"价格; s:2:" 12; s:12:" spPrdLstDate; s :10:"2011-11-10"; s:12:特价"; s:2:"11"; s:6:重量"; s:1:"2"; s:9:易受骗" ; s:0:"; s:4:"size"; s:5:"15,16"; s:5:"color"; s:3:"roz"; s:10:"size_stock"; s:4:,2,3"; s:11:"color_stock"; s:2:,1"; s:19:"is_check_outofstock"; s:2:"on"; s:9:"initstock ; s:2:" 11; s:8:" minstock; s:1:" 0; s:11:" isshowstock; s:2:" on; s:14:" affiliate_link; s:0:"; s:8:"posttype"; s:7:"product";}
a:22:{s:12:"productimage";s:82:"/wp-content/uploads/products_img/bla.jpg";s:13:"productimage1";s:0:"";s:13:"productimage2";s:0:"";s:13:"productimage3";s:0:"";s:13:"productimage4";s:0:"";s:13:"productimage5";s:0:"";s:13:"productimage6";s:0:"";s:5:"price";s:2:"12";s:12:"spPrdLstDate";s:10:"2011-11-10";s:12:"specialprice";s:2:"11";s:6:"weight";s:1:"2";s:9:"istaxable";s:0:"";s:4:"size";s:5:"15,16";s:5:"color";s:3:"roz";s:10:"size_stock";s:4:",2,3";s:11:"color_stock";s:2:",1";s:19:"is_check_outofstock";s:2:"on";s:9:"initstock";s:2:"11";s:8:"minstock";s:1:"0";s:11:"isshowstock";s:2:"on";s:14:"affiliate_link";s:0:"";s:8:"posttype";s:7:"product";}
推荐答案
这是一个序列化的数组,您可以反序列化将其转换回数组类型,然后序列化使其返回字符串.
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);更多推荐
这是什么格式?
发布评论