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

DOMElement::getAttribute

(PHP 5, PHP 7)

DOMElement :: getAttribute - 返回属性的值

描述

代码语言:javascript
复制
public string DOMElement::getAttribute ( string $name )

获取name当前节点名称的属性值。

参数

name

属性的名称。

返回值

该属性的值,或者如果找不到给定属性,则为空字符串name

扫码关注腾讯云开发者

领取腾讯云代金券

http://www.vxiaotou.com