Array
(
[0] => stdClass Object
(
[card] => stdClass Object
(
[name] => Abc
[number] => 1234567123456798
[exp_month] => 1
[exp_year] => 2015
[cvc] => 123
)
[deliveryPeriod] => stdClass Object
(
[id] => 1
[store_id] => 1
[start_date] => 2014-11-01
[end_date] => 2014-12-31
[delivery_schedules] => Array
(
[0] => stdClass Object
(
[id] => 1
[delivery_period_id] => 1
[start_time] => 09:00:00
[end_time] => 18:00:00
[slot_capacity] => 25
[delivery_fee] => 2
[used_capacity] => 1
)
)
)
)
)
)
I have this stdclass object array and i want to convert this to a normal array.I was using foreach but i can loop through inner array.how can i do that in php.please help me i am new to php.