note 97986 added to class.domnodelist

[email protected]
Newsgroups php.notes
Message-ID <[email protected]>
Note that $length is calculated (php5.3.2).
Iterating over a large NodeList may be time expensive.

Prefer :
$nb = $nodelist->length;
for($pos=0; $pos<$nb; $pos++)

Than:
for($pos=0; $pos<$nodelist->length; $pos++)

I had a hard time figuring that out...
----
Server IP: 89.31.146.176
Probable Submitter: 82.227.124.74
----
Manual Page -- http://www.php.net/manual/en/class.domnodelist.php
Edit        -- https://master.php.net/note/edit/97986
Del: integrated  -- https://master.php.net/note/delete/97986/integrated
Del: useless     -- https://master.php.net/note/delete/97986/useless
Del: bad code    -- https://master.php.net/note/delete/97986/bad+code
Del: spam        -- https://master.php.net/note/delete/97986/spam
Del: non-english -- https://master.php.net/note/delete/97986/non-english
Del: in docs     -- https://master.php.net/note/delete/97986/in+docs
Del: other reasons-- https://master.php.net/note/delete/97986
Reject      -- https://master.php.net/note/reject/97986
Search      -- https://master.php.net/manage/user-notes.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.