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