If I have an array like the one below what would be the best way to get all of the ListingCategory items out of the array so I can use them in an if statement within a foreach?
Array:
Array (
[0] => Array (
[ListingId] => SimpleXMLElement Object ([0] => 532712629)
[ListingCategory] => SimpleXMLElement Object ( [0] => 0350-5748-3400- )
) [1] =>
This will cycle through all array items, and all of the children within each ListingCategory.