DOMElement::setIdAttribute
(PHP 5, PHP 7, PHP 8)
DOMElement::setIdAttribute — Declares the attribute specified by name to be of type ID
Description
public function DOMElement::setIdAttribute(
string $qualifiedName,
bool $isId):
void
Parameters
qualifiedName
-
The name of the attribute.
isId
-
Set it to true if you want qualifiedName to be of type
ID, false otherwise.
Return Values
No value is returned.