When I run...
foreach($batch_1_data as $book)
{
echo "BOOK ISBN: ";
print_r($book->ASIN);
echo "<br>";
}
...I get...
BOOK ISBN: SimpleXMLElement Object ( [0] => 0007149670 )
BOOK ISBN: SimpleXMLElement Object ( [0] => 0023963603 )
BOOK ISBN: SimpleXMLElement Object ( [0] => 0028624491 )
BOOK ISBN: SimpleXMLElement Object ( [0] => 002863716X )
BOOK ISBN: SimpleXMLElement Object ( [0] => 0020423500 )
BOOK ISBN: SimpleXMLElement Object ( [0] => 0015678326 )
BOOK ISBN: SimpleXMLElement Object ( [0] => 0006547583 )
BOOK ISBN: SimpleXMLElement Object ( [0] => 0006547567 )
BOOK ISBN: SimpleXMLElement Object ( [0] => 0006478964 )
BOOK ISBN: SimpleXMLElement Object ( [0] => 0023963700 )
and I'm trying to get...
BOOK ISBN: 0007149670
BOOK ISBN: 0023963603
BOOK ISBN: 0028624491
BOOK ISBN: 002863716X
BOOK ISBN: 0020423500
BOOK ISBN: 0015678326
BOOK ISBN: 0006547583
BOOK ISBN: 0006547567
BOOK ISBN: 0006478964
BOOK ISBN: 0023963700
I've been playing around with this for an hour or so and was wondering how this is supposed to be done using Simple XML. I know I can just use a string function and remove the excess data, but it's not the best way to do this.
Thanks in advance for any help you can offer!