summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ext/simplexml/examples/security.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/simplexml/examples/security.php b/ext/simplexml/examples/security.php
index cbca9be..9c39191 100644
--- a/ext/simplexml/examples/security.php
+++ b/ext/simplexml/examples/security.php
@@ -2,5 +2,5 @@
$s = simplexml_load_file('security.xml');
echo $s->id;
$s->id = 20;
-simplexml_save_document_file('security.new.xml', $s);
+$s->to_xml_file('security.new.xml');
?>