DOMDocument->createAttribute()
(No version information available, might be only in CVS)
DOMDocument->createAttribute() โ Create new attribute
์ค๋ช
DOMDocument
DOMAttr createAttribute
( string $name
)
This function creates a new instance of class DOMAttr. ์ด ๋ ธ๋๋ DOMNode->appendChild() ๋ฑ์ ํตํ์ฌ ์ฝ์ ํ์ง ์์ผ๋ฉด ๋ณด์ฌ์ง์ง ์์ต๋๋ค.
๋งค๊ฐ๋ณ์
- name
-
The name of the attribute.
๋ฐํ๊ฐ
The new DOMAttr or FALSE if an error occured.
์ค๋ฅ/์์ธ
- DOM_INVALID_CHARACTER_ERR
-
Raised if name contains an invalid character.
์ฐธ๊ณ
- DOMNode->appendChild()
- DOMDocument->createAttributeNS()
- DOMDocument->createCDATASection()
- DOMDocument->createComment()
- DOMDocument->createDocumentFragment()
- DOMDocument->createElement()
- DOMDocument->createElementNS()
- DOMDocument->createEntityReference()
- DOMDocument->createProcessingInstruction()
- DOMDocument->createTextNode()