note 74022 added to function.domdocument-create-element

From: Date: Wed, 21 Mar 2007 06:08:00 +0000
Subject: note 74022 added to function.domdocument-create-element
Groups: php.notes 
Request: Send a blank email to php-notes+get-124655@lists.php.net to get a copy of this message
When creating a new element such that $newElement = $dom->create_element ( "string" ); and passing it through print_r it outputs the indexes "type", "tagname", 0, and 1 If I pass a node obtained through $dom->get_elements_by_tagname() into print_r it also outputs the "attributes" and "children" indexes continuing down all child trees until only leaf nodes remain Why would creating a node not have either of these indexes, or rather, why would you still be able to access appended children and still not have an index exist? ---- Server IP: 216.194.113.175 Probable Submitter: 129.21.109.156 ---- Manual Page -- http://www.php.net/manual/en/function.domdocument-create-element.php Edit -- https://master.php.net/note/edit/74022 Del: integrated -- https://master.php.net/note/delete/74022/integrated Del: useless -- https://master.php.net/note/delete/74022/useless Del: bad code -- https://master.php.net/note/delete/74022/bad+code Del: spam -- https://master.php.net/note/delete/74022/spam Del: non-english -- https://master.php.net/note/delete/74022/non-english Del: in docs -- https://master.php.net/note/delete/74022/in+docs Del: other reasons-- https://master.php.net/note/delete/74022 Reject -- https://master.php.net/note/reject/74022 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#124655) next »