作者jimshsu (jims)
看板PHP
标题[请益] 关於php的print_r()函数与DOMDocument的问题
时间Mon Jul 31 01:44:29 2006
我目前碰到这问题~发现原来线上手册已经有人提出来了
可是要怎麽解决呢?有人知道吗?
原始网址
http://tw2.php.net/manual/en/function.print-r.php
I find a possibly bug, when I wanted to print the structure of
a DOMDocument or a DOMDocumentType object.
print_r() outputs the object type correctly, but
the properties are missing.
$doc = $imp->createDocument();
$doc->loadXML($xmlString);
print_r($doc->doctype);
the code outputs:
DOMDocumentType Object
(
)
But the subobjects of $doc->doctype exist.
--
※ 发信站: 批踢踢实业坊(ptt.cc)
◆ From: 134.208.7.229