DOMDocument::createAttribute
(PHP 5)
DOMDocument::createAttribute — Create new attribute
Описание
DOMAttr DOMDocument::createAttribute
(
string $name
)
Список параметров
-
name
-
The name of the attribute.
Возвращаемые значения
The new DOMAttr or FALSE if an error occured.
Errors/Exceptions
-
DOM_INVALID_CHARACTER_ERR
-
Raised if name
contains an invalid character.