{
"total": 1,
"per_page": 12,
"current_page": 1,
"last_page": 1,
"data": [
"id": "1520133437",
"password": "1213456",
"name": "小明"
}
]
How can json data be directly assigned to an array? The value of json data must be obtained using an object
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"
How can json data be directly assigned to an array? The value of json data must be obtained using an object
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"