XMLWriter::openUri
PHP 5 >= 5.1.2, PHP 7, PHP 8, PECL xmlwriter >= 0.1.0
XMLWriter::openUri - Create new xmlwriter using source uri for output
Manual
XMLWriter::openUri(
string$uri ): public bool
Procedural style
XMLWriterfalsexmlwriter_open_uri stringuriParameters
- uri
-
The URI of the resource for the output.
Return Values
Object-oriented style: Returns true on success or false on failure.
Procedural style: Returns a new XMLWriter instance for later use with the xmlwriter functions on success, or false on failure.
Notes
Note:
On Windows, files opened with this function are locked until the writer is released.
Changelog
Version | Description |
8.0.0 | This function returns now an XMLWriter instance on success. Previouly, a resource has been returned in this case. |