element类、attr类、document类都继承自node
1.DomNodeList遍历
foreach ($elements as $node){
echo $node->nodeValue . "\n";
}
node类的定义
请看链接
element类、attr类、document类都继承自node
1.DomNodeList遍历
foreach ($elements as $node){
echo $node->nodeValue . "\n";
}
node类的定义
请看链接