{
"total": 1,
"per_page": 12,
"current_page": 1,
"last_page": 1,
"data": [
{
"id": "1520133437",
"password": "1213456",
"name": "小明"
}
]
}
Summer2018-07-13 14:09:36
How can json data be directly assigned to an array? The value of json data must be obtained using an object
2018-07-13 14:03:28
I assign the returned result to $user, and then I use $user['data'] to obtain it. The result will be an error, reminding me of "undefined array index"