Jump to content

Foreach inside of array?


j0se

Recommended Posts

I want to create a loop foreach  [@attributes] I seem to be stuck and cant figure it out.  any info would be helpful. Thanks!

 

Array
(
    [0] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [iD] => 5760861
                )

        )

    [1] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [iD] => 5335615
                )

        )

    [2] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [iD] => 6080572
                )

        )

    [3] => SimpleXMLElement Object
        (
            [@attributes] => Array
                (
                    [iD] => 5178898
                )

        )

)

Link to comment
https://forums.phpfreaks.com/topic/209728-foreach-inside-of-array/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.