aa [1] => abc) ------解决思路----------------------你给出的数据显然不">
时间:2021-07-01 10:21:17 帮助过:5人阅读
$s = "awd:[\"aa\",\"abc\"]";
$s = preg_replace('/(\w+):/', '"$1":', $s);
print_r(json_decode('{' . $s . '}', 1));
Array
(
[awd] => Array
(
[0] => aa
[1] => abc
)
)