0
我想將字符串轉換:將一個字符串轉換多個變量和值
{ "summonerLevel": 6, "name": "Nautilus", "dataVersion": 0, "internalName": "nautilus", "profileIconId": 4, "summonerId": 37399097, "acctId": 200656209, "revisionDate": "Sep 4, 2013 12:43:34 p.m.", "revisionId": 0 }
成類似:
$summonerLevel=6;
$name="Nautilus";
$dataVersion=0;
非常感謝!只是添加了真正的json_decode使其工作。 '$ vars = json_decode('{...}',true); 摘錄($ vars);' – Numerinico