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

XMLWriter::writePi

PHP function Edit on GitHub ✎

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

Writes a PI

Description

Oop

XMLWriter::writePi(string $target, string $content): bool

Procedural

xmlwriter_write_pi(XMLWriter $writer, string $target, string $content): bool

Writes a processing instruction.

Parameters

target

The target of the processing instruction.

content

The content of the processing instruction.

Return Values

Success

Changelog

VersionDescription

See Also

  • XMLWriter::startPi
  • XMLWriter::endPi

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