Php Simplexml Read From String

[Solved] Php Simplexml Read From String | Php - Code Explorer | yomemimo.com
Question : php simplexml to string

Answered by : alert-ape-xdd8nhkyf86u

<?php
// string to SimpleXMLElement
$xml = new SimpleXMLElement($string);
// make any changes.
....
// convert the SimpleXMLElement back to string.
$newString = $xml->asXML();
?>

Source : https://stackoverflow.com/questions/3690942/simplexml-to-string | Last Update : Thu, 29 Dec 22

Answers related to php simplexml read from string

Code Explorer Popular Question For Php