Monday, 19 August 2013

How to get data out of stdclass object?

How to get data out of stdclass object?

I am using $this->db->get_where() to get data from database in
codeigniter. Its returning following which I got using print_r()
Its looks like array of stdClass object. Anyone who how to access values
inside this array.
Array ( [0] =>
stdClass Object (
[id] => 1
[password321] => qwerty
[email123] => example@gmail.com
[username123] => xyz
)
)

No comments:

Post a Comment