时间:2021-07-01 10:21:17 帮助过:7人阅读
$str = '{"id":5730528714937479169,"fullname":"rourou","email":null,"mobile":"1391730****","description":null}';$str = preg_replace('/"id":(\d{1,}),/', '"id":"\\1",' , $str);echo $str;$jsondata=json_decode($str,true);echo "";var_dump($jsondata);