任何想法如何在php中解码这种类型的json?
a:3{s:9:"signature";s:43:"a:1{s:17:"ThemeShiftOptions";s:5:"0.1.2";}";s:5:"items";s:22984:"a:85:{i:1;O:8:"stdClass":7{s:2:"id";s:1:"1";s:7:"item_id";s:15:"general_default";s:10:"item_title";s:7:"General";s:9:"item_desc";s:0:"";s:9:"item_type";s:7:"heading";s:12:"item_options
答案 0 :(得分:1)
答案 1 :(得分:-1)
$data = json_decode($jsonString, true); // use true if you want to get an array
答案 2 :(得分:-2)
对我来说看起来像JSON:
$data = json_decode($json);
foreach ($data as $name => $value) {
// Your code here
}