note 103804 deleted from class.domnodelist by danbrown
| From: | danbrown@php.net | Date: | Wed, 04 May 2011 15:00:03 +0000 |
| Subject: | note 103804 deleted from class.domnodelist by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-179408@lists.php.net to get a copy of this message | ||
Note Submitter: Anonymous
----
In response to the previous comment. Why not using?
<?php
foreach($nodelist as $element){
[â¦]
}
?>
Instead of:
<?php
$nb = $nodelist->length;
for($pos=0; $pos<$nb; $pos++){
$element = $nodelist->item($pos);
[â¦]
}
?>