PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

DOMNamedNodeMap::getNamedItem> <DOMImplementation::hasFeature
Last updated: Fri, 05 Sep 2008

view this page in

The DOMNamedNodeMap class

Class synopsis

DOMNamedNodeMap
DOMNamedNodeMap {
/* Properties */
/* Methods */
DOMNode DOMNamedNodeMap::getNamedItem ( string $name )
DOMNode DOMNamedNodeMap::getNamedItemNS ( string $namespaceURI , string $localName )
DOMNode DOMNamedNodeMap::item ( int $index )
}

Table of Contents



add a note add a note User Contributed Notes
DOMNamedNodeMap
jtaal at eljakim dot nl
18-Aug-2008 06:14
You can iterate over an instance of DOMNamedNodeMap:
<?php
// suppose $node is a valid DOMElement object
// $node->attributes will be NULL or a valid DOMNamedNodeMap object
foreach ($node->attributes as $attrName => $attrNode) {
}
?>

 
show source | credits | stats | sitemap | contact | advertising | mirror sites