Forum und email

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.