SimepleXMLElement , XML.
,
$str = "<aoc> \x02\x01 , ., - , . .12</aoc>";
XML, XML, :
- " " (U + 0002) 24
- " " (U + 0001) 25
, SimpleXMLElement, XML- ( ), XML, . .
, , XML. XML, , , , ( "<aoc>" ).
$text = ' , ., - , . .12';
$xml = new SimpleXMLElement('<?xml version="1.0" encoding="UTF-8"?><aoc/>');
$xml->{0} = $text; // set the document-element text-content to $text
SimpleXML , SimpleXMLElement :
$str = $xml->asXML();
$movies = new SimpleXMLElement($str);
print_r($movies);
, :
Unicode ?
Unicode . SimpleXML Unicode ( UTF-8). , Unicode, XML. SimpleXML , node -, .
, - XML (simplexml_load_string ..), () .
, .