(PHP 5 >= 5.1.2, PHP 7, PECL xmlwriter >= 0.1.0)
XMLWriter::writeElement -- xmlwriter_write_element — Write full element tag
Estilo orientado à objeto
$name
[, string|null $content
= null
] ) : boolEstilo procedural
$writer
, string $name
[, string|null $content
= null
] ) : boolWrites a full element tag.
xmlwriter
Apenas para chamadas de procedimentos. O recurso XMLWriter resource que esta sendo modificado. Este recurso vem de uma chamada a xmlwriter_open_uri() ou xmlwriter_open_memory().
name
The element name.
content
The element contents.
Retorna true
em caso de sucesso ou false
em caso de falha.
Versão | Descrição |
---|---|
8.0.0 |
writer expects an XMLWriter
instance now; previously, a resource was expected.
|