Answers for "php print xml as string"

PHP
0

php parse xml

$movies = new SimpleXMLElement($xmlstr);

echo $movies->movie[0]->plot;
Posted by: Guest on January-06-2021
1

php xml string

htmlspecialchars($string, ENT_XML1 | ENT_QUOTES, 'UTF-8');// will convert ' to &apos; in addition to &, <, > and "( not | )
Posted by: Guest on June-04-2021

Browse Popular Code Answers by Language