<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <HTML ><HEAD ><TITLE >XMLWriter::flush</TITLE ><META NAME="GENERATOR" CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK REL="HOME" TITLE="PHP 手册" HREF="index.html"><LINK REL="UP" TITLE="XMLWriter Functions" HREF="ref.xmlwriter.html"><LINK REL="PREVIOUS" TITLE="XMLWriter::endPI" HREF="function.xmlwriter-end-pi.html"><LINK REL="NEXT" TITLE="XMLWriter::fullEndElement" HREF="function.xmlwriter-full-end-element.html"><META HTTP-EQUIV="Content-type" CONTENT="text/html; charset=UTF-8"></HEAD ><BODY CLASS="refentry" BGCOLOR="#FFFFFF" TEXT="#000000" LINK="#0000FF" VLINK="#840084" ALINK="#0000FF" ><DIV CLASS="NAVHEADER" ><TABLE SUMMARY="Header navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TH COLSPAN="3" ALIGN="center" >PHP 手册</TH ></TR ><TR ><TD WIDTH="10%" ALIGN="left" VALIGN="bottom" ><A HREF="function.xmlwriter-end-pi.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="80%" ALIGN="center" VALIGN="bottom" ></TD ><TD WIDTH="10%" ALIGN="right" VALIGN="bottom" ><A HREF="function.xmlwriter-full-end-element.html" ACCESSKEY="N" >下一页</A ></TD ></TR ></TABLE ><HR ALIGN="LEFT" WIDTH="100%"></DIV ><H1 ><A NAME="function.xmlwriter-flush" ></A >XMLWriter::flush</H1 ><DIV CLASS="refnamediv" ><A NAME="AEN243962" ></A ><P > (no version information, might be only in CVS)</P >XMLWriter::flush -- Flush current buffer</DIV ><DIV CLASS="refsect1" ><A NAME="AEN243965" ></A ><H2 >说明</H2 ><P >Object oriented style:</P >class <B CLASS="classname" >XMLWriter</B > { <BR ></BR >mixed <B CLASS="methodname" >flush</B > ( [bool empty] )<BR ></BR >}<P >Procedural style:</P >mixed <B CLASS="methodname" >xmlwriter_flush</B > ( resource xmlwriter [, bool empty] )<BR ></BR ><P > Flushes the current buffer. </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN243988" ></A ><H2 >参数</H2 ><P > <P ></P ><DIV CLASS="variablelist" ><DL ><DT ><CODE CLASS="parameter" > xmlwriter</CODE ></DT ><DD ><P >仅用于过程调用。<A HREF="language.types.resource.html" ><B CLASS="type" >resource</B ></A > 是被修改的 XMLWriter 资源。此资源来自对 <A HREF="function.xmlwriter-open-uri.html" ><B CLASS="function" >xmlwriter_open_uri()</B ></A > 或 <A HREF="function.xmlwriter-open-memory.html" ><B CLASS="function" >xmlwriter_open_memory()</B ></A > 的调用</P ></DD ><DT ><CODE CLASS="parameter" >empty</CODE ></DT ><DD ><P > Whether to empty the buffer or no. Default is <TT CLASS="constant" ><B >TRUE</B ></TT >. </P ></DD ></DL ></DIV > </P ></DIV ><DIV CLASS="refsect1" ><A NAME="AEN244006" ></A ><H2 >返回值</H2 ><P > If you opened the writer in memory, this function returns the generated XML buffer, Else, if using URI, this function will write the buffer and return the number of written bytes. </P ></DIV ><DIV CLASS="NAVFOOTER" ><HR ALIGN="LEFT" WIDTH="100%"><TABLE SUMMARY="Footer navigation table" WIDTH="100%" BORDER="0" CELLPADDING="0" CELLSPACING="0" ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" ><A HREF="function.xmlwriter-end-pi.html" ACCESSKEY="P" >上一页</A ></TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="index.html" ACCESSKEY="H" >起始页</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" ><A HREF="function.xmlwriter-full-end-element.html" ACCESSKEY="N" >下一页</A ></TD ></TR ><TR ><TD WIDTH="33%" ALIGN="left" VALIGN="top" >XMLWriter::endPI</TD ><TD WIDTH="34%" ALIGN="center" VALIGN="top" ><A HREF="ref.xmlwriter.html" ACCESSKEY="U" >上一级</A ></TD ><TD WIDTH="33%" ALIGN="right" VALIGN="top" >XMLWriter::fullEndElement</TD ></TR ></TABLE ></DIV ></BODY ></HTML >