Answers for "php xml string"

PHP
0

xml to object php

$object = json_decode(json_encode(simplexml_load_string($xml)));
Posted by: Guest on May-07-2020
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