5
回答
这是什么格式数据 看着不像json啊

a:13:{i:0;a:5:{s:2:"id";s:2:"17";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"其它";s:3:"img";s:0:"";s:4:"sort";s:2:"12";}i:1;a:5:{s:2:"id";s:2:"15";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"橙色";s:3:"img";s:0:"";s:4:"sort";s:2:"10";}i:2;a:5:{s:2:"id";s:1:"7";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"灰色";s:3:"img";s:0:"";s:4:"sort";s:1:"2";}i:3;a:5:{s:2:"id";s:1:"5";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"白色";s:3:"img";s:0:"";s:4:"sort";s:1:"0";}i:4;a:5:{s:2:"id";s:2:"12";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"粉色";s:3:"img";s:0:"";s:4:"sort";s:1:"7";}i:5;a:5:{s:2:"id";s:2:"16";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"紫色";s:3:"img";s:0:"";s:4:"sort";s:2:"11";}i:6;a:5:{s:2:"id";s:2:"10";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"红色";s:3:"img";s:0:"";s:4:"sort";s:1:"5";}i:7;a:5:{s:2:"id";s:2:"14";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"绿色";s:3:"img";s:0:"";s:4:"sort";s:1:"9";}i:8;a:5:{s:2:"id";s:2:"11";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"蓝色";s:3:"img";s:0:"";s:4:"sort";s:1:"6";}i:9;a:5:{s:2:"id";s:1:"8";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"金色";s:3:"img";s:0:"";s:4:"sort";s:1:"3";}i:10;a:5:{s:2:"id";s:1:"9";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"银色";s:3:"img";s:0:"";s:4:"sort";s:1:"4";}i:11;a:5:{s:2:"id";s:2:"13";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"黄色";s:3:"img";s:0:"";s:4:"sort";s:1:"8";}i:12;a:5:{s:2:"id";s:1:"6";s:7:"spec_id";s:1:"2";s:4:"name";s:6:"黑色";s:3:"img";s:0:"";s:4:"sort";s:1:"1";}}



这是什么格式数据用PHP怎么解析更新





PHP
举报
顶部