savexml()函數:將內部xml文檔放入一個字串;
For Example:
<code> "test.xml" <span><?xml version="1.0" encoding="ISO-8859-1"?></span><span><<span>note</span>></span><span><<span>to</span>></span>Tove<span></<span>to</span>></span><span><<span>from</span>></span>Jani<span></<span>from</span>></span><span><<span>heading</span>></span>Reminder<span></<span>heading</span>></span><span><<span>body</span>></span>Don't forget me this Weekend!<span></<span>body</span>></span><span></<span>note</span>></span>$xmlDoc=new DOMDocument(); $xmlDoc->load("test.xml"); print $xmlDoc->saveXML(); OUTPUT: Tove Jani Reminder Don't forget me this weekend! </code>').addClass('pre-numbering').hide(); $(this).addClass('has-numbering').parent().append($numbering); for (i = 1; i ').text(i)); }; $numbering.fadeIn(1700); }); });
以上就介紹了PHP savexml函數,包含了方面的內容,希望對PHP教學有興趣的朋友有幫助。