$strTest = "{\"access_token\":\"12kJ8eAADBP\",\"expires_in\":7200}";
$aTest = json_decode($strTest, true);
echo $aTest['expires_in'];
输出显示: 7200
$strTest = "{\"access_token\":\"12kJ8eAADBP\",\"expires_in\":7200}";
$aTest = json_decode($strTest, true);
echo $aTest['expires_in'];
输出显示: 7200
本文标题:php json字符串转数组
本文链接:https://www.haomeiwen.com/subject/dlftvftx.html
网友评论