Overview
KB
Technical FAQ
PHP Manual
CSS2 Manual
HTML Manual
JS Guide
JS Reference
PhpDock Manual
Nu-Coder Manual
PhpExpress Manual
PHP Joomla
Development
Learn PHP
 
<XMLWriter::toStreamXMLWriter::writeAttribute>
^XMLWriterLast updated: Mon, 26 Oct 2026

XMLWriter::toUri

(PHP 8 >= 8.4.0)

XMLWriter::toUri — Create new XMLWriter using a URI for output

Description

public static function XMLWriter::toUri(string $uri): static

Creates a new XMLWriter using a URI for output.

Parameters

uri

The URI of the resource for the output.

Return Values

Returns an XMLWriter.

See Also


<XMLWriter::toStreamXMLWriter::writeAttribute>
^XMLWriterLast updated: Mon, 26 Oct 2026