diff options
Diffstat (limited to 'ext/simplexml/examples')
-rw-r--r-- | ext/simplexml/examples/book.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/ext/simplexml/examples/book.php b/ext/simplexml/examples/book.php index 762f855c52..0416df861b 100644 --- a/ext/simplexml/examples/book.php +++ b/ext/simplexml/examples/book.php @@ -1,6 +1,7 @@ <?php -$books = simplexml_load_file('book.xml')->book; - +$books = simplexml_load_file('book.xml'); +//var_dump($books); +$books = $books->book; foreach ($books as $book) { echo "{$book->title} was written by {$book->author}\n"; } |