From: Christian Stocker Date: Sun, 26 Oct 2003 18:56:03 +0000 (+0000) Subject: fix example for saving to file X-Git-Tag: RELEASE_2_0_0RC1~70 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1e46a26f0fb8a636b27b2e8b31db92f621e0cde0;p=php fix example for saving to file --- diff --git a/ext/simplexml/examples/security.php b/ext/simplexml/examples/security.php index cbca9be79f..9c39191361 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'); ?>