Php string truncation problem "UID": 0, "RID": 0, "Name": "Zhang San", "Sex": "female", "Age": 30, "mobile": "10000", "Job": "company staff", "remark": "good ",
"ImgList": "a.jpg, B .jpg", "Time": 1000000 how to convert it into an array: you can directly call it as follows:
Reply to discussion (solution)
$ Str = '"UID": 0, "RID": 0, "Name": "Zhang San", "Sex": "female", "Age": 30, "mobile": "10000", "Job": "company staff", "remark": "good", "ImgList": "a.jpg, B .jpg", "Time": 1000000 '; $ str = '{'. $ str. '}'; $ data = json_decode ($ str, true); echo $ data ['name'].'
'; Print_r ($ data );
"UID": 0, "RID": 0, "Name": "Zhang San", "Sex": "female", "Age": 30, "mobile ": "10000", "Job": "company staff", "remark": "good ",
"ImgList": "a.jpg, B .jpg", "Time": 1000000 how to convert it into an array: you can directly call it as follows:
Thank you! It's so timely !!! Thank you !!