php8.5
Home/ Manual/ xmlwriter / xmlwriter/ XMLWriter::writeDtdEntity

XMLWriter::writeDtdEntity

PHP function Edit on GitHub ✎

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

Write full DTD Entity tag

Description

Oop

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

Procedural

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

Writes a full DTD entity.

Parameters

name

The name of the entity.

content

The content of the entity.

Return Values

Success

Changelog

VersionDescription
8.0.0publicId, systemId and notationData are nullable now.

See Also

  • XMLWriter::startDtdEntity
  • XMLWriter::endDtdEntity

Source: reference/xmlwriter/xmlwriter/writedtdentity.xml · from the official PHP manual (php/doc-en)