← All docs

xmlwriter_open_uri()

Creates a writer that outputs to a URI or file path; throws ValueError when it cannot be opened.

xmlwriter_open_uri()

function xmlwriter_open_uri(string $uri): mixed

Creates a writer that outputs to a URI or file path; throws ValueError when it cannot be opened.

Parameters:

  • $uri (string)

Returns: mixed

Availability

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

Internals

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