Multidimensional array only returning one item in PHP -
I have a multi-dimensional array, which is a few levels deep I trying to loop through some lower levels of array objects But when I do, it only returns an array item.
foreach ($ item as item $) {foreign currency ($ item $ id) {echo $ id; }}
For some reason, $ id echo returns the first item in the $ item array, how do I see all objects in the $ item array and resonate them?
First, are you completely sure that this is a multi-dimensional array? I'll try to check my $ item structure by using <$ p>
print_r ($ item)
Comments
Post a Comment