- PHP Array generated from Xpath Query - Trying to extract data
- Array
- (
- [0] => Array
- (
- [0] => SimpleXMLElement Object
- (
- [@attributes] => Array
- (
- [ReclaimDate] => 05/15/2008
- [ReclaimPrice] => 555555555
- [_Owner] => ownername
- )
- )
- )
- // if $myVar is what you print_r'ed
- echo (string)$myVar[0][0]['ReclaimDate'];
- echo (string)$myVar[0][0]->attributes('ReclaimDate');
- )
- ) // Array RETURNED`
- }
- }