我正在尝试输出数组的电子邮件值的值,但这样做有问题。该数组基于 json_decode()
这是我收到的错误
Fatal error: Cannot use object of type stdClass as array in /home/.... line 57
JSON(值:$this->bck_content)
{"email":"test@email.com","membership_id":"0","fname":"Kenneth","lname":"Poulsen","userlevel":"1","created":"2012-04-23 10:57:45","lastlogin":"2012-04-23 10:58:52","active":"y"}
我的代码
# Display requested user details
$details_array = json_decode($this->bck_content);
$value = $details_array['email'];
print $value;