← All docs

xmlwriter_write_pi()

Writes a complete processing instruction.

xmlwriter_write_pi()

function xmlwriter_write_pi(mixed $writer, string $target, string $content): bool

Writes a complete processing instruction.

Parameters:

  • $writer (mixed)
  • $target (string)
  • $content (string)

Returns: bool

Availability

No examples yet — check examples/ and showcases/ for usage patterns.

Internals

For how xmlwriter_write_pi is implemented in the compiler, see the internals page.