XMLWRITER_WRITE_ELEMENT(3) 1 XMLWRITER_WRITE_ELEMENT(3)
XMLWriter::writeElement - Write full element tag
Object oriented style
SYNOPSIS
bool XMLWriter::writeElement (string $name, [string $content])
DESCRIPTION
Procedural style
bool xmlwriter_write_element (resource $xmlwriter, string $name, [string $content])
Writes a full element tag.
PARAMETERS
o $
xmlwriter -Only for procedural calls. The XMLWriter resource that is being modified. This resource comes from a call to xml-
writer_open_uri(3) or xmlwriter_open_memory(3).
o $name
- The element name.
o $content
- The element contents.
RETURN VALUES
Returns TRUE on success or FALSE on failure.
CHANGELOG
+--------+------------------------------------------+
|Version | |
| | |
| | Description |
| | |
+--------+------------------------------------------+
| 5.2.3 | |
| | |
| | The $content parameter became optional. |
| | |
+--------+------------------------------------------+
SEE ALSO
XMLWriter::startElement, XMLWriter::endElement, XMLWriter::writeElementNS.
PHP Documentation Group XMLWRITER_WRITE_ELEMENT(3)