XMLWriter::setIndentString

xmlwriter_set_indent_string

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

XMLWriter::setIndentString -- xmlwriter_set_indent_stringSet string used for indenting

Descripción

Estilo orientado a objetos

publicXMLWriter::setIndentString(string$indentation): bool

Estilo por procedimientos

xmlwriter_set_indent_string(XMLWriter$writer, string$indentation): bool

Establece el string el cual va a ser usado para sangrar cada elemento/atributo del resultado xml.

Parámetros

xmlwriter

Sólo para llamadas por procedimientos. El resource XMLWriter que está siendo modificado. Este recurso proviene de una llamada a xmlwriter_open_uri() o xmlwriter_open_memory().

indentation

El string de sangría.

Valores devueltos

Devuelve true en caso de éxito o false en caso de error.

Historial de cambios

VersiónDescripción
8.0.0writer expects an XMLWriter instance now; previously, a resource was expected.

Notas

Nota:

The indent is reset when an xmlwriter is opened.

Ver también

To Top