Please tell me how to convert this kind of array
手机用户1591066273
手机用户1591066273 2022-06-23 14:19:49
0
2
1334

"role_ids": [

10,

2,

1

How to convert to this form

"roles": [ "roleId": 1, "roleName": "Administrator", "comments": null, "isDelete": null, "createTime": null, "createTime": null, "updateTime": null }, "roleId": 2, "roleName": "Normal user", "comments": null, "isDelete": null, "createTime": null, "updateTime": null                                                                                                                           ]

手机用户1591066273
手机用户1591066273

reply all(1)
autoload

First thing you should note is that the following form is a json string, and the one used in php is json_encode

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!