From 1e46a26f0fb8a636b27b2e8b31db92f621e0cde0 Mon Sep 17 00:00:00 2001 From: Christian Stocker Date: Sun, 26 Oct 2003 18:56:03 +0000 Subject: [PATCH] fix example for saving to file --- ext/simplexml/examples/security.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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'); ?> -- 2.50.1