[請益] 關於php的print_r()函數與DOMDocument的問題

看板PHP作者 (jims)時間19年前 (2006/07/31 01:43), 編輯推噓0(000)
留言0則, 0人參與, 最新討論串1/1
我目前碰到這問題~發現原來線上手冊已經有人提出來了 可是要怎麼解決呢?有人知道嗎? 原始網址 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
文章代碼(AID): #14pE-gtJ (PHP)
文章代碼(AID): #14pE-gtJ (PHP)