DomAttribute->value Returns value of attribute &reftitle.description; DomAttribute stringvalue This function returns the value of the attribute. &reftitle.examples; Getting all the attributes of a node document_element(); $attrs = $root->attributes(); echo 'Attributes of ' . $root->node_name() . "\n"; foreach ($attrs as $attribute) { echo ' - ' . $attribute->name . ' : ' . $attribute->value . "\n"; } ?> ]]> &example.outputs; &reftitle.returnvalues; Returns the value of the attribute. Migrating to PHP 5 Use the value property of DOMAttr. &reftitle.seealso;