Код: Выделить всё
"\\\\\soapenv:Server\\For input string: ""\\\\\"Но не знаю, почему не работает
Мой исходный код:
Код: Выделить всё
$xml = "\\\\\soapenv:Server\\For input string: '\\\\\";
$xmlObject = simplexml_load_string($xml, "SimpleXMLElement", LIBXML_NOCDATA);
$namespaces = $xmlObject->getNamespaces(true);
$body = $xmlObject->children($namespaces['soapenv'])->Body->Fault->faultcode;
dd($body);
SimpleXMLElement {#1890}
Подробнее здесь: https://stackoverflow.com/questions/791 ... xmlelement
Мобильная версия