这是什么格式?

编程入门 行业动态 更新时间:2024-10-27 22:19:11
本文介绍了这是什么格式?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

这很简单,但是我不知道要搜索什么才能找到答案.有人可以告诉我该数据以哪种格式插入表中吗?

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

更多推荐

这是什么格式?

本文发布于:2023-10-12 02:38:03,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1483523.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:格式   这是什么

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!