I do an ajax call and I get the data back from the controller in this form.
Array
(
[0] => stdClass Object
(
[cat_id] => 2
[title] => Clothes
[description] => Clothing for men and women
[active_coupon_counter] => 0
[store_id] => 1
)
[1] => stdClass Object
(
[cat_id] => 17
[title] => Designer
[description] => ;description
[active_coupon_counter] => 0
[store_id] => 1
)
[2] => stdClass Object
(
[cat_id] => 24
[title] => Fashion
[description] => ;description
[active_coupon_counter] => 0
[store_id] => 1
)
)
Array
This might seem foolish, but I cannot figure out how on earth would I access the cat_id
and title
properties in each of the arrays!
Any help, guys?
Thanks.