mirror of
https://github.com/php/php-src.git
synced 2024-11-28 12:26:37 +08:00
- OO example
This commit is contained in:
parent
58cb6bb07f
commit
5443879053
9
ext/xmlwriter/examples/xmlwriter_oo.php
Normal file
9
ext/xmlwriter/examples/xmlwriter_oo.php
Normal file
@ -0,0 +1,9 @@
|
||||
<?php
|
||||
$xw = new XMLWriter();
|
||||
$xw->openUri('test.xml');
|
||||
$xw->startDocument("1.0");
|
||||
$xw->startElement("book");
|
||||
$xw->text("example");
|
||||
$xw->endElement();
|
||||
$xw->endDocument();
|
||||
$xw->flush(0);
|
Loading…
Reference in New Issue
Block a user