In PHP, i have a $string
that contains XML-structured data.
How can i create and save a XML file from $string
?
Appreciate any help.
you can use:
file_put_contents("myxmlfile.xml", $string);
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With