[請益] 關於php的print_r()函數與DOMDocument的問題
我目前碰到這問題~發現原來線上手冊已經有人提出來了
可是要怎麼解決呢?有人知道嗎?
原始網址
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
PHP 近期熱門文章
PTT數位生活區 即時熱門文章