首页
学习
活动
专区
工具
TVP
发布
精选内容/技术社群/优惠产品,尽在小程序
立即前往

DOMElement::getElementsByTagNameNS

(PHP 5, PHP 7)

DOMElement :: getElementsByTagNameNS - 通过namespaceURI和localName获取元素

描述

代码语言:javascript
复制
public DOMNodeList DOMElement::getElementsByTagNameNS ( string $namespaceURI , string $localName )

这个函数用给定的localName和所有的后代元素获取namespaceURI

参数

namespaceURI

名称空间URI。

localName

本地名称。使用*返回元素树中的所有元素。

返回值

This function returns a new instance of the class DOMNodeList of all matched elements in the order in which they are encountered in a preorder traversal of this element tree.

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com