XMLWriter Functions
PHP Manual

XMLWriter::writeElement

(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)

XMLWriter::writeElementنوشتن برچسب کامل جز

Description

Oriented object style

bool XMLWriter::writeElement ( string $name [, string $content ] )

Procedural style

bool xmlwriter_write_element ( resource $xmlwriter , string $name [, string $content ] )

نوشتن برچسب کامل جز.

Parameters

xmlwriter

Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xmlwriter_open_uri() or xmlwriter_open_memory().

name

نام جز.

content

محتوای جز.

Return Values

Returns TRUE on success or FALSE on failure.

Changelog

Version Description
PHP 5.2.3 پارامتر content انتخابی شد.

See Also


XMLWriter Functions
PHP Manual