diff options
author | Sterling Hughes <sterling@php.net> | 2003-06-09 04:01:11 +0000 |
---|---|---|
committer | Sterling Hughes <sterling@php.net> | 2003-06-09 04:01:11 +0000 |
commit | 21d90d6ac40eebf68b52a8f0691c5d956d0187ba (patch) | |
tree | e9262c5759ae02354d11a5ad986a2cffd17bfd2f /ext/simplexml/examples | |
parent | 6fc9fdeefc7be3665e82bf8ec3861efff7de7c1a (diff) | |
download | php-git-21d90d6ac40eebf68b52a8f0691c5d956d0187ba.tar.gz |
ok, this is a zend bug.
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"; } |