当前位置:Gxlcms > PHP教程 > php长整形转字符串

php长整形转字符串

时间: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);

人气教程排行