Ok so I have an XML object.
$articles, I am foreach-ing around this, like so:
foreach($articles as $key => $ind_article) {
}
The problem I have is that the values I need to access are like so:
$ind_article->image;
$ind_article->image2;
$ind_article->image1;
But I can’t set the image source of the article because the key is unknown, yet I know it starts with image. What can I do to the array/object to either order it or display all image values?
1 Answer