summaryrefslogtreecommitdiff
path: root/ext/simplexml/examples
diff options
context:
space:
mode:
authorChristian Stocker <chregu@php.net>2003-10-26 18:56:03 (GMT)
committerChristian Stocker <chregu@php.net>2003-10-26 18:56:03 (GMT)
commit1e46a26f0fb8a636b27b2e8b31db92f621e0cde0 (patch)
tree882fdbef0b92d0f8238e62067b228eb56365ea29 /ext/simplexml/examples
parent5191cd3e99705b3c0715789258992228f8bb9c50 (diff)
downloadphp-1e46a26f0fb8a636b27b2e8b31db92f621e0cde0.tar.gz
fix example for saving to file
Diffstat (limited to 'ext/simplexml/examples')
-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');
?>