poiuyt1234
Новичок
Мда.. "Автор оригинала: poiuyt1234
$g = $b -> nodeName;
$h = $b -> nodeValue;
$identifiers[$g] = $h;" Это именно вместо этого кода надо?
-~{}~ 17.02.09 21:52:
Вот этот код:
Вызвал ошибку:
Fatal error: Uncaught exception 'Exception' with message 'SimpleXMLElement::__construct() expects parameter 1 to be string, object given' in /home/joints/public_html/rpx.php:373 Stack trace: #0 /home/joints/public_html/rpx.php(373): SimpleXMLElement->__construct(Object(DOMDocument)) #1 {main} thrown in /home/joints/public_html/rpx.php on line 373
$g = $b -> nodeName;
$h = $b -> nodeValue;
$identifiers[$g] = $h;" Это именно вместо этого кода надо?
-~{}~ 17.02.09 21:52:
Вот этот код:
PHP:
$sxml = new SimpleXMLElement($xml); foreach ($sxml->profile as $profile) $data[] = array_map("trim", (array)$profile);
Вызвал ошибку:
Fatal error: Uncaught exception 'Exception' with message 'SimpleXMLElement::__construct() expects parameter 1 to be string, object given' in /home/joints/public_html/rpx.php:373 Stack trace: #0 /home/joints/public_html/rpx.php(373): SimpleXMLElement->__construct(Object(DOMDocument)) #1 {main} thrown in /home/joints/public_html/rpx.php on line 373