PHP 8.1.24 Released!

XMLWriter::writeDtdEntity

xmlwriter_write_dtd_entity

(PHP 5 >= 5.2.1, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0)

XMLWriter::writeDtdEntity -- xmlwriter_write_dtd_entityWrite full DTD Entity tag

Descrição

Estilo orientado a objetos

public XMLWriter::writeDtdEntity(
    string $name,
    string $content,
    bool $isParam = false,
    ?string $publicId = null,
    ?string $systemId = null,
    ?string $notationData = null
): bool

Estilo procedural

xmlwriter_write_dtd_entity(
    XMLWriter $writer,
    string $name,
    string $content,
    bool $isParam = false,
    ?string $publicId = null,
    ?string $systemId = null,
    ?string $notationData = null
): bool

Writes a full DTD entity.

Parâmetros

writer

Apenas para chamadas procedurais. A instância de XMLWriter que está sendo modificada. Este objeto é retornado de uma chamada a xmlwriter_open_uri() ou xmlwriter_open_memory().

name

The name of the entity.

content

The content of the entity.

Valor Retornado

Retorna true em caso de sucesso ou false em caso de falha.

Changelog

Versão Descrição
8.0.0 O parâmetro writer agora espera uma instância de XMLWriter; anteriormente, um resource era esperado.
8.0.0 publicId, systemId and notationData are nullable now.

Veja Também

add a note

User Contributed Notes

There are no user contributed notes for this page.
To Top