DomElement::set_attribute(PHP 4 >= 4.1.0) DomElement::set_attribute — Sets the value of an attribute Описание
DomAttribute DomElement::set_attribute
( string $name
, string $value
)
Sets an attribute with name name to the given value. Список параметров
Возвращаемые значенияReturns the old DomAttribute node, or the new one if you are creating the attribute for the first time. Примеры
Пример #1 Setting an attribute
<?phpMigrating to PHP 5 |
||