summaryrefslogtreecommitdiff
path: root/ext/simplexml/examples
diff options
context:
space:
mode:
authorSterling Hughes <sterling@php.net>2003-06-09 04:01:11 +0000
committerSterling Hughes <sterling@php.net>2003-06-09 04:01:11 +0000
commit21d90d6ac40eebf68b52a8f0691c5d956d0187ba (patch)
treee9262c5759ae02354d11a5ad986a2cffd17bfd2f /ext/simplexml/examples
parent6fc9fdeefc7be3665e82bf8ec3861efff7de7c1a (diff)
downloadphp-git-21d90d6ac40eebf68b52a8f0691c5d956d0187ba.tar.gz
ok, this is a zend bug.
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";
}