← All docs

xmlwriter_write_attribute()

Writes a complete attribute.

xmlwriter_write_attribute()

function xmlwriter_write_attribute(mixed $writer, string $name, string $value): bool

Writes a complete attribute.

Parameters:

  • $writer (mixed)
  • $name (string)
  • $value (string)

Returns: bool

Availability

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

Internals

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