mirror of
https://github.com/php/php-src.git
synced 2024-09-21 18:07:23 +00:00
update the examples
This commit is contained in:
parent
cb7e90119f
commit
594f6433af
@ -2,5 +2,5 @@
|
||||
$s = simplexml_load_file('security.xml');
|
||||
echo $s->id;
|
||||
$s->id = 20;
|
||||
$s->to_xml_file('security.new.xml');
|
||||
$s->asXML('security.new.xml');
|
||||
?>
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?php
|
||||
$books = simplexml_load_file('book.xml');
|
||||
|
||||
$xpath_result = $books->xsearch("/books/book/title");
|
||||
$xpath_result = $books->xpath("/books/book/title");
|
||||
foreach($xpath_result as $entry ) {
|
||||
print "$entry \n";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user