mirror of
https://github.com/php/php-src.git
synced 2024-12-26 02:10:46 +08:00
10 lines
166 B
PHP
10 lines
166 B
PHP
<?php
|
|
$books = simplexml_load_file('book.xml');
|
|
|
|
$xpath_result = $books->xpath("/books/book/title");
|
|
foreach($xpath_result as $entry ) {
|
|
print "$entry \n";
|
|
}
|
|
|
|
?>
|