1
我正在使用$this->db->get_where()
从codeigniter中的数据库中获取数据。 其返回以下我得到使用print_r()
如何从stdclass对象中获取数据?
它看起来像数组stdClass object
。任何人如何访问此数组中的值。
Array ([0] =>
stdClass Object (
[id] => 1
[password321] => qwerty
[email123] => [email protected]
[username123] => xyz
)
)
'$数组[0] - > id'应回声1 –
@Labeeb。已经为您提出问题的请求提供了解决方案。尝试并分享想法。 –