Home  >  Article  >  Backend Development  >  这是php json_encode编译过的数据吗 a:1:{s:7:"default";s:2:"40";}

这是php json_encode编译过的数据吗 a:1:{s:7:"default";s:2:"40";}

WBOY
WBOYOriginal
2016-06-20 12:35:221088browse

怎么是这种格式?我编译过的是这样的格式[{"0":"11","commission1":"11","1":"22","commissions":"22"}]


回复讨论(解决方案)

不是!
时序列化的结果

$s = 'a:1:{s:7:"default";s:2:"40";}';print_r(unserialize($s));
Array(    [default] => 40)

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn