note 83180 added to class.domnodelist
| From: | drichter at muvicom dot de | Date: | Wed, 14 May 2008 13:11:58 +0000 |
| Subject: | note 83180 added to class.domnodelist | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-139372@lists.php.net to get a copy of this message | ||
Addition to my first note:
An traditional for-loop does not allow you to change the DOM-tree while looping - the effects are
the nearly the same as with foreach. So you have to collect the nodes in an array and do the
tree-altering stuff within a second loop (looping the array this time ...)
----
Server IP: 217.160.72.57
Probable Submitter: 84.189.145.13
----
Manual Page -- http://www.php.net/manual/en/class.domnodelist.php
Edit -- https://master.php.net/note/edit/83180
Del: integrated -- https://master.php.net/note/delete/83180/integrated
Del: useless -- https://master.php.net/note/delete/83180/useless
Del: bad code -- https://master.php.net/note/delete/83180/bad+code
Del: spam -- https://master.php.net/note/delete/83180/spam
Del: non-english -- https://master.php.net/note/delete/83180/non-english
Del: in docs -- https://master.php.net/note/delete/83180/in+docs
Del: other reasons-- https://master.php.net/note/delete/83180
Reject -- https://master.php.net/note/reject/83180
Search -- https://master.php.net/manage/user-notes.php