← All docs

xmlwriter_start_attribute_ns()

Starts a namespaced attribute.

xmlwriter_start_attribute_ns()

function xmlwriter_start_attribute_ns(mixed $writer, ?string $prefix, string $name, ?string $namespace): bool

Starts a namespaced attribute.

Parameters:

  • $writer (mixed)
  • $prefix (?string)
  • $name (string)
  • $namespace (?string)

Returns: bool

Availability

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

Internals

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