DOMDocument
PHP Manual

DOMDocument::createAttribute

(PHP 5)

DOMDocument::createAttributeساخت ویژگی جدید

Description

DOMAttr DOMDocument::createAttribute ( string $name )

این تابع نمونه جدید کلاس DOMAttr را می‌سازد. This node will not show up in the document unless it is inserted with (e.g.) DOMNode->appendChild().

Parameters

name

نام ویژگی.

Return Values

DOMAttr جدید یا FALSE اگر خطا رخ داده باشد.

Errors/Exceptions

DOM_INVALID_CHARACTER_ERR

ایجاد اگر name شامل کاراکترهای ناصحیح باشد.

See Also


DOMDocument
PHP Manual