更新时间:2023-12-04 14:06:11
您不应使用echo,因为它是一个数组。使用print_r或var_dump即可。
you should not use echo because it is an array. use print_r or var_dump .it works fine
$json = '{"a":1,"b":2,"c":3,"d":4,"e":5}';
print_r(json_decode($json, true));
输出:
Array
(
[a] => 1
[b] => 2
[c] => 3
[d] => 4
[e] => 5
)