summaryrefslogtreecommitdiff
path: root/ext/simplexml/examples/security.php
diff options
context:
space:
mode:
Diffstat (limited to 'ext/simplexml/examples/security.php')
-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 9c39191..17897b3 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;
-$s->to_xml_file('security.new.xml');
+$s->asXML('security.new.xml');
?>