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

XMLWriter::writeDtd

PHP function Edit on GitHub ✎

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

Write full DTD tag

Description

Oop

XMLWriter::writeDtd(string $name, string|null $publicId = null, string|null $systemId = null, string|null $content = null): bool

Procedural

xmlwriter_write_dtd(XMLWriter $writer, string $name, string|null $publicId = null, string|null $systemId = null, string|null $content = null): bool

Writes a full DTD.

Parameters

name

The DTD name.

publicId

The external subset public identifier.

systemId

The external subset system identifier.

content

The content of the DTD.

Return Values

Success

Changelog

VersionDescription

See Also

  • XMLWriter::startDtd
  • XMLWriter::endDtd

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