我正在从数据库中获取复杂的数组,我需要在每次迭代(循环)中像下面这样的单独记录。
subscribed_store -> Name
subscribed_companyLogo -> logo image
subscribed_merchant -> Company Name
我们如何简化以下操作。
/********************** First Iteration *******************/
Array
(
[subscribed_store] => Array
(
[0] => stdClass Object
(
[id] => 55
[name] => test
)
)
[subscribed_companyLogo] => Array
(
[0] => http://test.com/images/logo.png
)
[subscribed_merchant] => Array
(
[0] => stdClass Object
(
[id] => 9
[company_name] => Google
[company_url] => http://www.google.com
[first_name] => David
)
)
)
多谢 :)