Scholar Repository
Home>Manual>Sets the value of an attribute

Sets the value of an attribute


DomAttribute->set_value

(PHP 4 >= 4.1.0)

DomAttribute->set_valueSets the value of an attribute

Description

bool DomAttribute::set_value ( string $content )

This function sets the value of an attribute.

Parameters

content

The new value.

Return Values

Returns TRUE on success or FALSE on failure.

Migrating to PHP 5

Set the value property of DOMAttr.


Home>Manual>Sets the value of an attribute