I have an xml file that contains a list of elements. I want to retrieve a specific element by index. I looked around for a while and didn't find anything that worked for me.
I would have thought this would work, but it doesn't:
echo($xml->children()[0]);
I'm not very experienced in php, coming from a C# background, so any help is appreciated.