DomAttribute->name

Returns the name of attribute ()

DomAttribute {
  string name();
}

Gets the name of the attribute.

返回值

Returns the name of the attribute.

Migrating to PHP 5

Use the name property of DOMAttr.

参见
DomAttribute->value for an example