summaryrefslogtreecommitdiff
path: root/ext/simplexml/examples
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml/examples')
-rw-r--r--ext/simplexml/examples/book.php5
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";
}