I am getting following complex arrays from database, I need individual record like below in each iteration (loop).
subscribed_store -> Name
subscribed_companyLogo -> logo image
subscribed_merchant -> Company Name
How can we simplify following.
/********************** 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
)
)
)
Thanks a Lot 🙂
if
$arrayholding the above array then tryif you want it in dynamic way then see below
this code will work globally and will echo id. but you need to echo different element which are different keys. so use the followings