I've run into an issue with PHP and object key access.
I have a SimpleXMLElement that returns an array of 11 SimpleXMLElements as follows:
SimpleXMLElement Object
(
[Power.AssetToAssetMapping] => Array
(
[0] => SimpleXMLElement Object
(
[AssetToAssetMappingID] => 36063
[Supplier_x0020_Asset_x0020_Type] => Powerstrip
[..etc..]
When I try to isolate the array using braces, I only see the first record of the array. The other 10 are never output:
print_r( $xml->{'Power.AssetToAssetMapping'} );
When I use the whole object, I see all 11 records:
print_r( $xml );
Is there another way to access the first child of this object? I can foreach over each child of the object returned in $xml and get to each element just fine, but it seems like this is a bug in PHP.