xref: /PHP-5.4/ext/simplexml/examples/book.php (revision 21d90d6a)
1<?php
2$books = simplexml_load_file('book.xml');
3//var_dump($books);
4$books = $books->book;
5foreach ($books as $book) {
6	echo "{$book->title} was written by {$book->author}\n";
7}
8?>
9