关于json

json是一种数据格式,

 

$json_str2 = preg_replace('/([,|{])\s*(\d+?)\s*:/','$1"$2":', $match_result[1]);
echo $json_str2;

 

posted @ 2019-07-12 08:17  liwuming  阅读(120)  评论(0编辑  收藏  举报