PHP Doku:: Gibt Puffer zurück - function.xmlwriter-output-memory.html

Verlauf / Chronik / History: (1) anzeigen

Sie sind hier:
Doku-StartseitePHP-HandbuchFunktionsreferenzXML-ManipulationXMLWriterXMLWriter FunktionenXMLWriter->outputMemory

Ein Service von Reinhard Neidl - Webprogrammierung.

XMLWriter Funktionen

<<XMLWriter->openURI

XMLWriter->setIndentString>>

XMLWriter->outputMemory

(PHP 5 >= 5.1.2, PECL xmlwriter >= 0.1.0)

XMLWriter->outputMemoryGibt Puffer zurück

Beschreibung

Objektorientiert:

bool XMLWriter::outputMemory ([ bool $flush ] )

Prozedural:

string xmlwriter_output_memory ( resource $xmlwriter [, bool $flush ] )

Gibt den aktuellen Puffer-Inhalt zurück.

Parameter-Liste

xmlwriter

Nur für prozedurale Aufrufe. Die XMLWriter-resource, die bearbeitet werden soll. Diese Ressource wird von Aufrufen von xmlwriter_open_uri() oder xmlwriter_open_memory() geliefert.

flush

Ob der Puffer geleert werden soll oder nicht. Standard ist TRUE.

Rückgabewerte

Gibt den aktuellen Puffer-Inhalt als Zeichenkette zurück.

Siehe auch


Ein BenutzerBeitrag:
- Beiträge aktualisieren...
dave at dtracorp dot com
23.02.2007 8:08
when writing xml with xmlwriter, there is no need to use htmlspecialchars or htmlentities for the text() method (this will only cause double encoding)
the xmlwriter takes care of entities for you after calling outputMemory



PHP Powered Diese Seite bei php.net
The PHP manual text and comments are covered by the Creative Commons Attribution 3.0 License © the PHP Documentation Group - Impressum - mail("TO:Reinhard Neidl",...)