PHP Velho Oeste 2024

XMLWriter::outputMemory

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

XMLWriter::outputMemoryGeçerli tamponu döndürür

Açıklama

Nesne yönelimli kullanım

outputMemory ([ bool $boşalt ] ) : string

Yordamsal kullanım

xmlwriter_output_memory ( resource $xmlwriter [, bool $boşalt ] ) : string

Geçerli tamponu döndürür.

Değiştirgeler

xmlwriter

Sadece yordamsal kullanım için. xmlwriter_open_uri() veya xmlwriter_open_memory() çağrılarıyla elde edilen, üzerinde işlem yapılacak XMLWriter özkaynağı.

boşalt

Çıktı tamponu boşaltılmayacaksa FALSE belirtilir. TRUE öntanımlıdır.

Dönen Değerler

Geçerli tamponun içeriğini bir dizge olarak döndürür.

Ayrıca Bakınız

add a note add a note

User Contributed Notes 1 note

up
1
dave at dtracorp dot com
17 years ago
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
To Top